/* ════════════════════════════════════════════════════
   MyIELTSWorld LMS — Login · BUBBLY BRIGHT EDITION
   Full-page gradient backdrop with floating glass card
   ════════════════════════════════════════════════════ */

.tonkla-login-wrapper {
    display: flex; align-items: center; justify-content: center;
    padding: 40px 20px; min-height: 100vh;
    font-family: 'Quicksand', 'Nunito', system-ui, sans-serif; color: #1E3A4A;
    /* Full gradient background instead of flat beige */
    background: #F5F8FA;
    position: relative; overflow: hidden;
}
/* Decorative floating circles */
.tonkla-login-wrapper::before,
.tonkla-login-wrapper::after {
    content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.tonkla-login-wrapper::before {
    width: 400px; height: 400px; top: -80px; right: -60px;
    background: rgba(43,132,160,0.04); border: 2px solid rgba(43,132,160,0.06);
}
.tonkla-login-wrapper::after {
    width: 250px; height: 250px; bottom: -40px; left: -40px;
    background: rgba(43,132,160,0.03); border: 2px solid rgba(43,132,160,0.04);
}

.tonkla-login-card {
    width: 100%; max-width: 440px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(24px);
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 24px;
    padding: 36px 32px 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    position: relative; overflow: hidden;
    animation: loginCardIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes loginCardIn {
    from { transform: translateY(40px) scale(0.92); opacity: 0; }
    to { transform: none; opacity: 1; }
}
/* Gradient accent arc at top instead of flat 4px line */
.tonkla-login-card::before {
    content: ''; position: absolute;
    top: -60px; left: 50%; transform: translateX(-50%);
    width: 200%; height: 120px;
    background: rgba(43,132,160,0.06);
    border-radius: 0 0 50% 50%;
    opacity: 0.12;
}

.tonkla-login-header { text-align: center; margin-bottom: 32px; padding-top: 12px; position: relative; z-index: 1; }

.tonkla-login-logo {
    display: block; max-height: 56px; max-width: 200px;
    margin: 0 auto 18px; object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(43,132,160,0.2));
}

.tonkla-login-title {
    font-family: 'Quicksand', 'Nunito', sans-serif;
    font-size: 26px; font-weight: 800; margin: 0 0 6px;
    color: #1E2D3D;
    background: none;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tonkla-login-subtitle {
    font-size: 15px; color: #4A6B7C; margin: 0; font-weight: 600;
}

/* Alerts — rounded with left accent */
.tonkla-login-alert {
    padding: 14px 18px; border-radius: 16px;
    font-size: 14px; font-weight: 700; margin-bottom: 20px;
    border-left: 5px solid; position: relative; overflow: hidden;
}
.tonkla-login-alert::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent);
    pointer-events: none;
}
.tonkla-login-alert-error {
    background: rgba(226,92,92,0.08); color: #C0392B;
    border-left-color: #E25C5C;
}
.tonkla-login-alert-success {
    background: rgba(46,170,123,0.08); color: #1E7A5A;
    border-left-color: #2EAA7B;
}

/* Form — rounded inputs with generous spacing */
.tonkla-login-form .tonkla-form-group { margin-bottom: 20px; }

.tonkla-login-form label {
    display: block; font-size: 12px; font-weight: 800;
    color: #4A6B7C; margin-bottom: 8px;
    letter-spacing: 0.06em; text-transform: uppercase;
}

.tonkla-login-form input[type="text"],
.tonkla-login-form input[type="password"] {
    display: block; width: 100%; height: 52px; padding: 0 20px;
    border: 2px solid #C1D8E4; border-radius: 16px;
    font-size: 15px; font-family: 'Quicksand', 'Nunito', sans-serif; font-weight: 600;
    color: #1E3A4A; background: rgba(255,255,255,0.8);
    backdrop-filter: blur(6px); box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.tonkla-login-form input[type="text"]:focus,
.tonkla-login-form input[type="password"]:focus {
    outline: none; border-color: #2B84A0;
    box-shadow: 0 0 0 5px rgba(43,132,160,0.18), 0 4px 16px rgba(43,132,160,0.1);
    background: #fff; 
}

/* Remember me */
.tonkla-login-form .tonkla-form-row { margin-bottom: 24px; }
.tonkla-login-form .tonkla-checkbox-label {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 700; color: #4A6B7C; cursor: pointer;
}
.tonkla-login-form .tonkla-checkbox-label input[type="checkbox"] {
    width: 20px; height: 20px; margin: 0;
    accent-color: #2B84A0; border-radius: 6px;
}

/* Submit — full-width gradient pill */
.tonkla-login-btn {
    display: block; width: 100%; height: 52px; border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #2B84A0 0%, #5FB8D0 50%, #7BBFD0 100%);
    color: #fff; font-size: 16px; font-weight: 800;
    font-family: 'Quicksand', 'Nunito', sans-serif;
    cursor: pointer; letter-spacing: 0.03em;
    box-shadow: 0 4px 12px rgba(43,132,160,0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative; overflow: hidden;
}
.tonkla-login-btn::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    pointer-events: none;
}
.tonkla-login-btn:hover {
    
    box-shadow: 0 6px 16px rgba(43,132,160,0.35);
}
.tonkla-login-btn:active {  }

@media (max-width: 480px) {
    .tonkla-login-card { padding: 36px 24px 32px; border-radius: 24px; }
    .tonkla-login-wrapper { padding: 24px 16px; }
}
