/* ─── Layout ─── */
body.login-page {
    background: linear-gradient(160deg, #D6F5F8 0%, #EAF9F7 40%, #F7FAFC 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── Ambient Glow ─── */
body.login-page::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(ellipse, rgba(28, 181, 200, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

body.login-page::after {
    content: '';
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 50vw;
    height: 50vh;
    background: radial-gradient(ellipse, rgba(245, 213, 71, 0.07) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 1.5rem 3rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.login-box {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(28, 181, 200, 0.12);
    padding: 4rem 3rem;
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(28, 181, 200, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 20px;
}

/* ─── Glow top border ─── */
.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1CB5C8, #F5D547, transparent);
    border-radius: 20px 20px 0 0;
}

.form-header {
    margin-bottom: 3rem;
    text-align: center;
}

.form-title {
    font-family: 'Bebas Neue', var(--font-serif), sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #1E3A4A;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-family: var(--font-sans);
    color: #4A6C7A;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* ─── Form Controls Light ─── */
.login-page .form-control {
    background: transparent !important;
    border: none !important;
    border-bottom: 1.5px solid #A8D4DC !important;
    border-radius: 0 !important;
    color: #1E3A4A !important;
    box-shadow: none !important;
    padding: 0.8rem 0 !important;
}

.login-page .form-control:focus {
    border-bottom-color: #1CB5C8 !important;
    box-shadow: none !important;
}

.login-page .form-control::placeholder {
    color: #8AACB8 !important;
}

.login-page .form-label {
    font-size: 0.78rem;
    color: #4A6C7A;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

/* ─── Login Button ─── */
.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, #1CB5C8, #4EC9B0);
    color: #ffffff !important;
    border: none;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(28, 181, 200, 0.3);
    text-decoration: none;
    border-radius: 8px;
}

.btn-login:hover {
    box-shadow: 0 15px 35px rgba(28, 181, 200, 0.45);
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-link-custom {
    color: #8AACB8;
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.3s;
    font-weight: 500;
}

.btn-link-custom:hover {
    color: #1CB5C8;
}

/* ─── Divider ─── */
.divider {
    display: flex;
    align-items: center;
    margin: 2.5rem 0;
    color: #8AACB8;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    font-weight: 600;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #D5EBF0;
    margin: 0 1rem;
}

/* ─── OAuth Btn ─── */
.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    padding: 1rem;
    border: 1.5px solid #D5EBF0;
    background: #ffffff;
    color: #4A6C7A;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 8px;
}

.oauth-btn:hover {
    background: #F0F7FA;
    color: #1E3A4A;
    border-color: #1CB5C8;
}

/* ─── Alerts ─── */
.alert-custom {
    border-radius: 8px;
    border: 1px solid rgba(28, 181, 200, 0.15);
    background: rgba(28, 181, 200, 0.05);
    color: #4A6C7A;
    font-size: 0.85rem;
}

.alert-email-unverified {
    border-radius: 0;
    font-size: 0.85rem;
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #795548;
    margin-bottom: 1rem;
}

.alert-login-danger {
    border-radius: 0;
    font-size: 0.85rem;
}

.alert-logout-success {
    border-radius: 0;
    font-size: 0.85rem;
    background-color: #f8fff8;
    color: #1a5d1a;
    border-color: #d0ecd0;
}

/* ─── Checkbox light ─── */
.login-page input[type="checkbox"] {
    accent-color: #1CB5C8;
}

/* ─── Stamp light ─── */
.login-page .stamp {
    background: linear-gradient(135deg, #1CB5C8, #4EC9B0);
    opacity: 1;
    border-radius: 4px;
    color: #ffffff;
}

/* highlight links */
.login-page a[href="/register"] {
    color: #1CB5C8 !important;
    font-weight: 600;
}

.login-page a[href="/register"]:hover {
    color: #148EA0 !important;
    text-decoration: underline !important;
}
