:root {
    --primary-color: #00A99D;
    --primary-hover: #008C82;
    --primary-disabled: #7DD3CC;
    --text-color: #2c3e50;
    --border-color: #E0E0E0;
    --error-color: #e74c3c;
    --success-color: #27ae60;
    --cover-height: 35vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: #f0f4f8;
    min-height: 100vh;
    position: relative;
}

.site-header {
    background: linear-gradient(135deg, #006B63 0%, #00A99D 100%);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,169,157,0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hgs-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
}

.hgs-text {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 4px;
}

.hgs-sub {
    font-size: 0.85rem;
    opacity: 0.95;
    letter-spacing: 1px;
}

.page-layout {
    min-height: 100vh;
    position: relative;
    padding-top: 80px;
    padding-bottom: 60px;
}

.cover-image {
    width: 100%;
    height: var(--cover-height);
    background: linear-gradient(135deg, #006B63 0%, #00A99D 50%, #7DD3CC 100%);
    position: relative;
    overflow: hidden;
}

.cover-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.cover-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    text-align: center;
    padding: 1rem;
}

.cover-content h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cover-content p {
    font-size: 1rem;
    opacity: 0.95;
}

.content-container {
    width: calc(100% - 2rem);
    max-width: 500px;
    margin: -8rem auto 0;
    position: relative;
    z-index: 2;
}

.grid-container {
    padding: 0 1rem;
}

.header-card {
    position: relative;
    background: var(--primary-color);
    color: white;
    padding: 20px 32px;
    border-radius: 16px;
    text-align: center;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0,169,157,0.35);
    z-index: 3;
    margin-bottom: -15px;
}

.header-card h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.header-card p {
    font-size: 0.9rem;
    opacity: 0.95;
}

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    width: 100%;
    padding-top: 35px;
}

.card-body {
    padding: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-select, .form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s;
    background-color: white;
    color: var(--text-color);
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,169,157,0.2);
}

.submit-button {
    width: 100%;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.submit-button:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,169,157,0.4);
}

.submit-button:disabled {
    background: var(--primary-disabled);
    cursor: not-allowed;
    opacity: 0.8;
}

.site-footer {
    background: linear-gradient(135deg, #006B63 0%, #004D47 100%);
    color: rgba(255,255,255,0.9);
    padding: 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    text-align: center;
}

.footer-text {
    font-size: 0.8rem;
}

.error-message {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 6px;
    display: block;
}

.form-input.error {
    border-color: var(--error-color);
}

@media (max-width: 768px) {
    .cover-content h1 { font-size: 1.4rem; }
    .content-container { margin: -6rem auto 0; }
    .card-body { padding: 24px; }
}
