/* MEEM Gold login page */

:root {
    --login-accent: #d4af37;
    --login-accent-hover: #b8860b;
    --login-accent-dark: #9a7209;
    --login-header-bg: #8f0571;
    --login-header-from: #8f0571;
    --login-header-to: #810566;
    --login-text: #1f1b16;
    --login-text-muted: #6d655b;
    --login-border: #dddddd;
    --login-white: #ffffff;
    --login-error: #dc2626;
}

body.login-page {
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
}

body.login-page .page-wrapper {
    background: #ffffff;
}

.login-container {
    position: relative;
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 64px;
    background: #ffffff;
}

.login-card {
    position: relative;
    z-index: 1;
    background: var(--login-white);
    max-width: 620px;
    width: 100%;
    border: 1px solid #eee6d6;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(11, 31, 51, 0.1);
    overflow: hidden;
}

.login-header {
    position: relative;
    text-align: center;
    padding: 22px 32px 20px;
    background: linear-gradient(180deg, var(--login-header-from) 0%, var(--login-header-to) 100%);
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    inset: auto 18% 0;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

.login-header::after {
    display: none;
}

.login-logo-link,
.login-kicker,
.login-title,
.login-subtitle {
    position: relative;
    z-index: 1;
}

.login-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 0;
    line-height: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.login-logo {
    display: block;
    max-width: 132px;
    max-height: 42px;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.login-kicker {
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.login-title {
    margin: 0 0 4px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: 0;
}

.login-subtitle {
    margin: 0 auto;
    max-width: 360px;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

.login-body {
    padding: 36px 40px 40px;
    background: var(--login-white);
}

.form-group-modern {
    margin-bottom: 22px;
}

.form-label-modern {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--login-text);
}

.form-label-modern .required {
    color: var(--login-error);
}

.form-input-modern {
    width: 100%;
    height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--login-border);
    border-radius: 0;
    background: var(--login-white);
    color: var(--login-text);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    box-shadow: none;
    transition: border-color 0.2s ease;
}

.form-input-modern:focus {
    border-color: #bbbbbb;
    box-shadow: none;
}

.form-input-modern::placeholder {
    color: #aaaaaa;
}

.alert-modern {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 28px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-modern {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--login-accent);
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.95rem;
    color: var(--login-text-muted);
    cursor: pointer;
    user-select: none;
}

.forgot-link {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--login-accent);
    text-decoration: none;
    white-space: nowrap;
}

.forgot-link:hover {
    color: var(--login-accent-hover);
    text-decoration: underline;
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 11px 28px;
    border-radius: 3px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-login:active {
    transform: none;
}

.signup-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #eeeeee;
    text-align: center;
}

.signup-text {
    margin: 0 0 12px;
    font-size: 0.92rem;
    color: var(--login-text-muted);
}

.btn-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid var(--login-accent);
    border-radius: 3px;
    background: transparent;
    color: var(--login-accent);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-signup:hover {
    background: var(--login-accent);
    color: #ffffff;
}

@media (max-width: 640px) {
    .login-container {
        padding: 24px 16px 40px;
    }

    .login-header {
        padding: 24px 18px 22px;
    }

    .login-logo {
        max-width: 128px;
        max-height: 44px;
    }

    .login-body {
        padding: 28px 20px 32px;
    }

    .login-title {
        font-size: 1.65rem;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
    }
}
