/* ============================================================
   LOGIN PAGE CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: #0d0d0d;
    color: #f1f1f1;
    height: 100vh;
    overflow: hidden;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 420px;
    height: 100vh;
}

/* ---- Left: Slideshow ---- */
.slideshow-panel {
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.7) 0%, rgba(124, 58, 237, 0.3) 100%);
}

.slide-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
}

.slide-content .institute-name {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f59e0b, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 8px;
}

.slide-content .tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot.active {
    background: #f59e0b;
    width: 24px;
    border-radius: 4px;
}

/* ---- Right: Login Form ---- */
.login-panel {
    background: #141414;
    border-left: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 36px;
    position: relative;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo .logo-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 12px;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4);
}

.login-logo .logo-name {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-logo .logo-sub {
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

.login-tabs {
    display: flex;
    background: #1a1a1a;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
    width: 100%;
}

.login-tab {
    flex: 1;
    padding: 8px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 7px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
}

.login-tab.active {
    background: #7c3aed;
    color: #fff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #a0a0a0;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    color: #f1f1f1;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
}

.form-control:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-control::placeholder {
    color: #444;
}

.forgot-link {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 18px;
}

.forgot-link a {
    font-size: 0.78rem;
    color: #7c3aed;
    text-decoration: none;
}

.forgot-link a:hover {
    color: #f59e0b;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #7c3aed, #9d5cf5);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #444;
    font-size: 0.75rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #2a2a2a;
}

.btn-signup {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #f59e0b;
    border: 1px solid #f59e0b;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: block;
    text-decoration: none;
}

.btn-signup:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.login-footer {
    position: absolute;
    bottom: 16px;
    font-size: 0.7rem;
    color: #444;
    text-align: center;
}

.alert-msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-msg.error {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border-left: 3px solid #ef4444;
}

.alert-msg.success {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border-left: 3px solid #10b981;
}

@media (max-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .slideshow-panel {
        display: none;
    }

    .login-panel {
        padding: 32px 24px;
    }
}