/* ============================================
   ROLOF IMT – STUDENT LOGIN PAGE
   studentlogin.css  |  extends style2.css + portal.css
   ============================================ */

/* ============================================
   BODY OVERRIDE — neutral bg for login page
   ============================================ */
.login-body {
    background: #f0f4fc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   LOGIN MAIN — two-column split layout
   ============================================ */
.login-main {
    flex: 1;
    display: flex;
    min-height: calc(100vh - 300px);  /* leaves space for header + footer */
}

/* ============================================
   LEFT PANEL — dark navy branding side
   ============================================ */
.login-left {
    flex: 0 0 42%;
    background: linear-gradient(160deg, var(--primary-dark) 0%, #0b3d7a 60%, var(--primary-color) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding:  20px 48px 60px;
    position: relative;
    overflow: hidden;
}

/* decorative background circles */
.login-left::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    top: -80px;
    right: -100px;
}
.login-left::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    bottom: -60px;
    left: -60px;
}

.login-left-inner {
    position: relative;
    z-index: 2;
    max-width: 380px;
    width: 100%;
    color: #fff;
    margin-top: 40px;
}

/* Brand row */
.ll-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.ll-logo {
    width: 58px;
    height: auto;
    flex-shrink: 0;
}

.ll-brand h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 3px;
    color: #fff;
    line-height: 1.2;
}

.ll-brand p {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Welcome text */
.ll-welcome {
    margin-bottom: 32px;
}

.ll-welcome h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.ll-welcome p {
    font-size: 14px;
    color: rgba(255,255,255,0.78);
    line-height: 1.75;
    margin: 0;
}

/* Feature list */
.ll-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ll-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
}

.llf-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--accent-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.ll-features li:hover .llf-icon {
    background: var(--accent-color);
    color: #333;
}

/* ND notice */
.ll-notice {
    background: rgba(255,193,7,0.12);
    border: 1px solid rgba(255,193,7,0.35);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.88);
    line-height: 1.6;
    margin-bottom: 28px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ll-notice i {
    color: var(--accent-color);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.ll-notice strong {
    color: var(--accent-color);
}

/* Back link */
.ll-back-link {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.25s ease;
}

.ll-back-link:hover {
    color: var(--accent-color);
}

/* ============================================
   RIGHT PANEL — form side
   ============================================ */
.login-right {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 40px 60px;
    background: #f0f4fc;
}

.login-form-wrap {
    width: 100%;
    max-width: 440px;
    margin-top: 10px;
}

/* Form header */
.lf-header {
    text-align: center;
    margin-bottom: 36px;
}

.lf-icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    margin: 0 auto 18px;
    box-shadow: 0 8px 24px rgba(11,94,215,0.28);
}

.lf-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
}

.lf-header p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* Form card */
.lf-form {
    background: #fff;
    border-radius: 18px;
    padding: 36px 34px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e4eaf6;
}

/* Input groups */
.lf-group {
    margin-bottom: 20px;
}

.lf-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.lf-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.lf-input-icon {
    position: absolute;
    left: 14px;
    color: var(--primary-color);
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
}

.lf-input-wrap input {
    width: 100%;
    padding: 13px 44px 13px 42px;
    border: 1.5px solid #d8e0f0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    background: #f8faff;
    outline: none;
    transition: all 0.3s ease;
}

.lf-input-wrap input:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(11,94,215,0.10);
}

.lf-input-wrap input::placeholder {
    color: #b0bcd4;
    font-size: 13px;
}

/* Password toggle button */
.lf-toggle-pw {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #9aa5bc;
    font-size: 15px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
    z-index: 2;
}
.lf-toggle-pw:hover { color: var(--primary-color); }

/* Remember me + forgot password row */
.lf-row-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 8px;
}

.lf-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
}

.lf-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.lf-forgot {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
.lf-forgot:hover { color: var(--primary-dark); text-decoration: underline; }

/* Login button */
.btn-login {
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.btn-login:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark), #021a45);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11,94,215,0.35);
}

.btn-login:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.btn-login-loading {
    display: inline-flex;
    align-items: center;
}

/* Divider */
.lf-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #b0bcd4;
    font-size: 12px;
}

.lf-divider::before,
.lf-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e4eaf6;
}

/* Forgot password secondary button */
.btn-forgot-pw {
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-forgot-pw:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Bottom create account row */
.lf-bottom {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: var(--text-light);
}

.lf-create-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}
.lf-create-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* Help line */
.lf-help {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: #9aa5bc;
}

.lf-help a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.lf-help a:hover { text-decoration: underline; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .login-main   { flex-direction: column; }
    .login-left   { flex: none; padding: 48px 32px 40px; }
    .login-left::before, .login-left::after { display: none; }
    .login-left-inner { max-width: 100%; }
    .login-right  { padding: 48px 24px 56px; }
}

@media (max-width: 575px) {
    .login-left   { padding: 36px 20px 32px; }
    .login-right  { padding: 36px 16px 48px; }
    .lf-form      { padding: 28px 20px; border-radius: 14px; }
    .lf-header h2 { font-size: 22px; }
    .ll-welcome h3 { font-size: 20px; }
    .lf-icon-circle { width: 64px; height: 64px; font-size: 26px; }
}
