/* ============================================================
   Auth Layout — Xcalibur LMS
   Font: DM Sans (Google Fonts)
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Page wrapper ── */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ── Left white panel ── */
.auth-left {
    width: 56%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-logo {
    padding: 28px 48px;
}

.auth-logo img {
    width: 112px;
    height: 44px;
    display: block;
}

.auth-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

.auth-form-inner {
    width: 100%;
    max-width: 397px;
}

.auth-footer {
    text-align: center;
    padding: 20px 24px;
    font-size: 12.5px;
    color: #9CA3AF;
    font-family: 'DM Sans', sans-serif;
}

/* ── Right blue panel ── */
.auth-right {
    flex: 1;
    background-image: url('../img/auth-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: none;
}

@media (min-width: 992px) {
    .auth-right { display: block; }
}

@media (max-width: 991px) {
    .auth-left { width: 100%; }
}

/* ============================================================
   Login Form
   ============================================================ */

/* Avatar icon */
.login-avatar {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(145deg, #42A5F5 0%, #1E88E5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

/* Title */
.login-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
    text-align: center;
    margin-bottom: 6px;
}

/* Subtitle */
.login-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: #808080;
    text-align: center;
    line-height: 1.55;
    margin-bottom: 28px;
}

/* Field group */
.field-group {
    margin-bottom: 16px;
}

/* Label */
.field-label {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #202020;
    margin-bottom: 6px;
}

/* Input wrapper */
.input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #DEDEDE;
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap:focus-within {
    border-color: #2695FF;
    box-shadow: 0 0 0 3px rgba(38, 149, 255, 0.10);
}

/* Icon slot */
.input-icon {
    padding: 0 12px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: #9496A0;
}

/* Text input */
.input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    padding: 13px 12px 13px 0;
    font-size: 13px;
    font-weight: 400;
    color: #202020;
    background: transparent;
    font-family: 'DM Sans', sans-serif;
}

.input-wrap input::placeholder {
    color: #9496A0;
}

/* Validation error */
.field-error {
    font-size: 12px;
    color: #EF4444;
    margin-top: 4px;
}

/* Remember me + Forgot row */
.row-check-forgot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    color: #505060;
    user-select: none;
}

.remember-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #2695FF;
    cursor: pointer;
}

/* Forgot password link */
.forgot-link {
    font-size: 13px;
    font-weight: 400;
    color: #424AFF;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Login button */
.btn-login {
    width: 100%;
    padding: 13px;
    background: linear-gradient(90deg, #2695FF 0%, #3EAFFF 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    letter-spacing: 0.1px;
    transition: opacity 0.18s;
}

.btn-login:hover {
    opacity: 0.9;
}

/* Session status */
.session-status {
    font-size: 13px;
    color: #16A34A;
    margin-bottom: 14px;
}
