/* ==========================================================================
   Auth pages — shared styles
   (login, forgot-password, reset-password, confirm-password, verify-email)
   ========================================================================== */

/* ── Elegant Light Background ── */
.auth-login {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(150deg, #e8f4fb 0%, #ddeef8 30%, #edf5f0 65%, #fdf6ec 100%);
}

/* Soft ambient blobs */
.auth-login::before,
.auth-login::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: auth-drift 14s ease-in-out infinite alternate;
    pointer-events: none;
}

.auth-login::before {
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, #a8d8f0 0%, #7ec8e3 50%, transparent 100%);
    top: -160px;
    left: -120px;
    animation-duration: 16s;
}

.auth-login::after {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, #fde8c0 0%, #f7c87a 50%, transparent 100%);
    bottom: -130px;
    right: -100px;
    animation-duration: 12s;
    animation-delay: -5s;
}

/* ── Floating soft particles ── */
.auth-login .bg-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-login .bg-particles span {
    position: absolute;
    border-radius: 50%;
    background: rgba(14, 100, 160, 0.07);
    border: 1px solid rgba(14, 100, 160, 0.12);
    animation: auth-floatUp linear infinite;
}

.auth-login .bg-particles span:nth-child(1)  { width: 18px; height: 18px; left: 8%;  bottom: -30px; animation-duration: 20s; animation-delay: 0s;  }
.auth-login .bg-particles span:nth-child(2)  { width: 12px; height: 12px; left: 20%; bottom: -30px; animation-duration: 24s; animation-delay: 3s;  }
.auth-login .bg-particles span:nth-child(3)  { width: 28px; height: 28px; left: 33%; bottom: -30px; animation-duration: 18s; animation-delay: 6s;  }
.auth-login .bg-particles span:nth-child(4)  { width: 10px; height: 10px; left: 48%; bottom: -30px; animation-duration: 26s; animation-delay: 1s;  }
.auth-login .bg-particles span:nth-child(5)  { width: 22px; height: 22px; left: 62%; bottom: -30px; animation-duration: 21s; animation-delay: 5s;  }
.auth-login .bg-particles span:nth-child(6)  { width: 15px; height: 15px; left: 75%; bottom: -30px; animation-duration: 23s; animation-delay: 2s;  }
.auth-login .bg-particles span:nth-child(7)  { width: 20px; height: 20px; left: 88%; bottom: -30px; animation-duration: 19s; animation-delay: 8s;  }
.auth-login .bg-particles span:nth-child(8)  { width: 11px; height: 11px; left: 55%; bottom: -30px; animation-duration: 28s; animation-delay: 4s;  }

@keyframes auth-floatUp {
    0%   { transform: translateY(0)   rotate(0deg);   opacity: 0;   }
    10%  { opacity: 1; }
    90%  { opacity: 0.5; }
    100% { transform: translateY(-110vh) rotate(720deg); opacity: 0; }
}

@keyframes auth-drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(40px, 30px) scale(1.08); }
    100% { transform: translate(-20px, 50px) scale(0.95); }
}

/* ── Premium card ── */
.login-container {
    position: relative;
    z-index: 10;
    background: linear-gradient(160deg, #ffffff 0%, #f4faff 55%, #fdf8f2 100%) !important;
    border: none !important;
    border-radius: 24px !important;
    box-shadow:
        0 2px 0   rgba(26, 159, 212, 0.35),
        0 8px 24px rgba(14,  80, 140, 0.10),
        0 24px 56px rgba(14,  58, 100, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    padding: 40px 36px !important;
    overflow: hidden;
}

/* Gradient border */
.login-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(160deg, rgba(26,159,212,0.45) 0%, rgba(240,184,64,0.25) 50%, rgba(26,159,212,0.15) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Accent bar */
.login-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(90deg, #1a9fd4 0%, #5dd6f5 40%, #f0b840 70%, #e8843a 100%);
    opacity: 0.9;
}

/* Inner glow spot */
.login-container .card-glow {
    pointer-events: none;
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26,159,212,0.12) 0%, transparent 70%);
}

/* ── Logo ── */
.header-logo {
    text-align: center;
    margin-bottom: 24px;
}

.header-logo img {
    filter: drop-shadow(0 2px 8px rgba(14, 100, 160, 0.18));
}

/* ── Form controls ── */
.login-container .form-control {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid #c8dff0 !important;
    color: #1a3550 !important;
    border-radius: 10px !important;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(14, 80, 140, 0.06);
}

.login-container .form-control::placeholder {
    color: #96bbd6 !important;
}

.login-container .form-control:focus {
    background: #ffffff !important;
    border-color: #1a9fd4 !important;
    box-shadow: 0 0 0 3px rgba(26, 159, 212, 0.15), inset 0 1px 3px rgba(14, 80, 140, 0.04) !important;
    outline: none;
}

.login-container select.form-control option {
    background: #ffffff;
    color: #1a3550;
}

.login-container .form-label {
    color: #1a3550;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

/* ── Input icon ── */
.input-container {
    position: relative;
}

.login-container .input-container i {
    color: #96bbd6 !important;
}

#password {
    padding-right: 30px !important;
}

.passwordhiden {
    font-size: 16px !important;
}

/* ── Typography ── */
.login-container .login-title {
    font-size: 20px;
    font-weight: 700;
    color: #0d2c4a;
    margin-bottom: 6px;
}

.login-container .login-description {
    font-size: 14px;
    color: #6b8ea8;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ── Links ── */
.login-container a {
    color: #0e84c4 !important;
    transition: color 0.2s;
}

.login-container a:hover {
    color: #065a82 !important;
    text-decoration: underline;
}

.login-container .back-to-login {
    color: #7a9eb8;
    font-size: 14px;
    text-align: center;
    margin-top: 16px;
}

/* ── Social login ── */
.social-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(31, 48, 72, 0.2);
}

.social-login.google {
    background-color: #ffffff;
    color: #444444;
    border: 1px solid #e1e8ed;
    position: relative;
}

.social-login.google:hover {
    background-color: #f8f9fa;
    box-shadow: 0 6px 16px rgba(31, 48, 72, 0.3);
    transform: translateY(-2px);
}

.social-login.google .icon {
    display: inline-flex;
    margin-right: 12px;
}

.social-login.google .icon svg {
    width: 20px;
    height: 20px;
}

/* ── Divider ── */
.divider-or {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.divider-or .line {
    flex: 1;
    height: 1px;
    background-color: #d6e8f4;
}

.divider-or .text {
    padding: 0 15px;
    color: #96bbd6;
    font-size: 14px;
}

/* ── Spinner ── */
@keyframes auth-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.auth-spin {
    animation: auth-spin 0.8s linear infinite;
    vertical-align: middle;
}

/* ── Validation errors ── */
.validation-errors:not(:empty) {
    background-color: #fff5f5;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.validation-errors .error-message {
    color: #c0392b;
    font-size: 13px;
    padding: 2px 0;
}

.validation-errors .error-message + .error-message {
    border-top: 1px solid #f5c6cb;
    margin-top: 4px;
    padding-top: 6px;
}

/* ── Alert legacy styles ── */
ul.error-auth-header {
    background: #F44336;
    padding: 12px;
    color: white;
    border-radius: 8px;
    border: 2px solid #ffffff;
    box-shadow: 0 0 14px rgba(0,0,0,0.15);
}

.bg-light-4 {
    background-color: #dbdbdb;
}
