/* ============================================================================
   Login Card Styles — matches goose-damage login-card.css exactly
   ============================================================================ */

/* Page wrapper — centers card */
.login-page-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    min-height: 100%;
    flex: 1;
}

/* Login Card */
.login-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 8px 32px rgba(82, 116, 69, 0.08);
    max-width: 450px;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(82, 116, 69, 0.1);
}

.login-card-body {
    padding: 2rem 2rem 1.5rem;
}

/* Typography — ODNR Brand Guidelines */
.login-heading {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    color: #464846;
    font-size: 2rem;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.login-subtitle {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: clamp(0.7rem, 2vw, 1.125rem);
    color: #6b7280;
    background-color: #ffffff;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

.login-disclaimer {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: clamp(0.55rem, 1.5vw, 0.8rem);
    color: #6b7280;
    background-color: #ffffff;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Form Labels */
.login-label {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    color: #464846;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Inputs */
.login-input {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
    color: #111827;
    font-weight: 400;
    width: 100%;
    box-sizing: border-box;
}

.login-input:focus {
    outline: none;
    border-color: #527445 !important;
    box-shadow: 0 0 0 3px rgba(77, 115, 67, 0.15) !important;
    background-color: #ffffff;
}

.login-input:invalid,
.login-input:valid {
    border-color: #cbd5e1;
    box-shadow: none;
}

.login-input:invalid:focus,
.login-input:valid:focus {
    border-color: #527445 !important;
    box-shadow: 0 0 0 3px rgba(77, 115, 67, 0.15) !important;
}

.login-input::placeholder {
    color: #94a3b8;
}

/* Form Row */
.login-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

/* Form Groups */
.login-form-group {
    width: 100%;
    max-width: 75%;
}

/* Login Button */
.login-btn {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 0.625rem 1.25rem;
    background: #527445;
    border: none;
    border-radius: 32px;
    color: #ffffff;
    min-width: 160px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    letter-spacing: 0.3px;
}

.login-btn:hover {
    background: #3f5f38;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.login-btn-wrapper {
    margin-bottom: 0.75rem;
}

.login-btn-icon {
    vertical-align: middle;
    margin-left: 6px;
}

/* Helper Links Section */
.login-links-section {
    margin-top: 1rem;
}

.login-links-item {
    margin-bottom: 0;
}

/* Helper Link — Subtle text link */
.login-help-link {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.85rem;
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0;
    font-weight: 400;
}

.login-help-link:hover {
    color: #527445;
    text-decoration: underline;
}

.login-help-icon {
    vertical-align: text-bottom;
    margin-right: 4px;
}

/* Signup Link — Subtle style */
.login-signup-link-subtle {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.85rem;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    font-weight: 400;
}

.login-signup-link-subtle:hover {
    color: #527445;
    text-decoration: none;
}

.login-signup-link-subtle svg {
    transition: transform 0.2s ease;
}

.login-signup-link-subtle:hover svg {
    transform: translateX(2px);
}

.login-signup-icon {
    vertical-align: text-bottom;
    margin-left: 2px;
}

/* Example Box */
.login-example-box {
    display: none;
    margin-top: 0.75rem;
    padding: 1rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    animation: slideDown 0.3s ease;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-example-label {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #464846;
    background-color: #ffffff;
    margin-bottom: 0.75rem;
}

.login-example-image {
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

/* Offline mode banner */
.login-offline-banner {
    background-color: #eff6ff;
    color: #1e40af;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid #bfdbfe;
}

/* Error message */
.login-error {
    background-color: #fee2e2;
    color: #B52626;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
    text-align: center;
}

.login-error i {
    margin-right: 0.5rem;
}

/* Utility */
.text-center {
    text-align: center;
}

/* Accessibility — Focus Indicators */
.login-help-link:focus,
.login-btn:focus,
.login-input:focus {
    outline: 3px solid #527445;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-card-body {
        padding: 1.5rem 1.5rem;
    }

    .login-heading {
        font-size: clamp(1.5rem, 5vw, 2.25rem);
        margin-bottom: 0.75rem;
    }

    .login-card-body > p {
        font-size: clamp(0.7rem, 2vw, 1.125rem) !important;
        margin-bottom: 0.5rem !important;
    }

    .login-disclaimer {
        font-size: clamp(0.45rem, 1.2vw, 0.9rem) !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
    }

    .login-label {
        font-size: clamp(0.65rem, 1.8vw, 0.9375rem);
        margin-bottom: 0.25rem;
    }

    .login-input {
        font-size: clamp(0.75rem, 2vw, 1rem);
        padding: 0.3rem 0.65rem;
    }

    .login-form-row {
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .login-form-group {
        max-width: 75%;
    }

    .login-btn {
        font-size: clamp(0.8rem, 2.2vw, 1.125rem);
        padding: 0.3rem 0.75rem;
        min-width: 100px;
        max-width: 100%;
        min-height: auto !important;
    }

    .login-help-link {
        font-size: clamp(0.6rem, 1.6vw, 0.85rem);
    }

    .login-signup-link-subtle {
        font-size: clamp(0.6rem, 1.6vw, 0.85rem);
    }

    .login-example-box {
        padding: 0.65rem;
    }

    .login-example-box p {
        font-size: clamp(0.65rem, 1.8vw, 0.875rem) !important;
        margin-bottom: 0.5rem !important;
    }
}