/* Tonkla LMS — Login · Clean Flat Edition */

.tonkla-login-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px;
    font-family: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
    color: #333;
    min-height: 100vh;
    background: #f5f5ef;
}

.tonkla-login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid #d5d5c8;
    border-radius: 8px;
    padding: 40px 34px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}
.tonkla-login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: #2F7251;
}

.tonkla-login-header {
    text-align: center;
    margin-bottom: 28px;
    padding-top: 8px;
}

.tonkla-login-logo {
    display: block;
    max-height: 48px;
    max-width: 180px;
    margin: 0 auto 14px;
    object-fit: contain;
}

.tonkla-login-title {
    font-family: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1E5038;
}

.tonkla-login-subtitle {
    font-size: 14px;
    color: #5a6a72;
    margin: 0;
    font-weight: 500;
}

/* Alerts */
.tonkla-login-alert {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}

.tonkla-login-alert-error {
    background: rgba(192,57,43,0.08);
    color: #C0392B;
    border: 1px solid rgba(192,57,43,0.2);
}

.tonkla-login-alert-success {
    background: rgba(47,114,81,0.08);
    color: #2F7251;
    border: 1px solid rgba(47,114,81,0.2);
}

/* Form */
.tonkla-login-form .tonkla-form-group { margin-bottom: 16px; }

.tonkla-login-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.tonkla-login-form input[type="text"],
.tonkla-login-form input[type="password"] {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d5d5c8;
    border-radius: 4px;
    font-size: 15px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 500;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.tonkla-login-form input[type="text"]:focus,
.tonkla-login-form input[type="password"]:focus {
    outline: none;
    border-color: #2F7251;
    box-shadow: 0 0 0 2px rgba(47,114,81,0.15);
}

/* Remember me */
.tonkla-login-form .tonkla-form-row { margin-bottom: 22px; }

.tonkla-login-form .tonkla-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #5a6a72;
    cursor: pointer;
}

.tonkla-login-form .tonkla-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #2F7251;
    border-radius: 3px;
}

/* Submit */
.tonkla-login-btn {
    display: block;
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 4px;
    background: #2F7251;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Nunito Sans', sans-serif;
    cursor: pointer;
    transition: background 0.15s;
}

.tonkla-login-btn:hover {
    background: #1E5038;
}

@media (max-width: 480px) {
    .tonkla-login-card { padding: 32px 22px; }
    .tonkla-login-wrapper { padding: 40px 16px; }
}
