/* ===============================================
   Compact Login Page - No Scroll Design
   Everything fits in 100vh
   =============================================== */

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

.login-wrapper {
    display: grid;
    grid-template-columns: 45% 55%;
    height: 100vh;
    overflow: hidden;
}

/* ===============================================
   LEFT PANEL - BRAND
   =============================================== */

.login-left {
    background: linear-gradient(135deg, #1800AD 0%, #1E4DB7 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Animated Background Effect */
.login-left::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

/* Logo */
.brand-logo {
    z-index: 1;
    margin-bottom: 2rem;
}

.brand-logo img {
    height: 50px;
    width: auto;
}

/* Brand Content */
.brand-content {
    z-index: 1;
}

.brand-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    color: #ffffff;
    letter-spacing: -1px;
}

/* Features List */
.brand-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: white;
}

.feature-text p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
}

/* Footer */
.brand-footer {
    z-index: 1;
}

.brand-footer p {
    font-size: 0.875rem;
    opacity: 0.7;
    margin: 0;
}

/* ===============================================
   RIGHT PANEL - FORM
   =============================================== */

.login-right {
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 5rem;
}

/* Logo */
.login-logo {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 440px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.login-logo img {
    height: 60px;
    width: auto;
}

/* Header */
.login-header {
    margin-bottom: 2.5rem;
    max-width: 440px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.login-header p {
    font-size: 0.9375rem;
    color: #64748B;
    margin: 0;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 440px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.form-field label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-field label i {
    font-size: 0.9375rem;
    color: #64748B;
}

.form-field input {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    font-size: 0.9375rem;
    color: #1a1a1a;
    background: #F8FAFC;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    transition: all 0.2s ease;
    outline: none;
}

.form-field input::placeholder {
    color: #9CA3AF;
}

.form-field input:focus {
    background: white;
    border-color: #1800AD;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

/* Password Field */
.password-field {
    position: relative;
}

.password-field input {
    padding-right: 3rem;
}

.toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748B;
    font-size: 1.125rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.toggle-btn:hover {
    color: #1800AD;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #64748B;
}

.remember input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1800AD;
}

.forgot {
    font-size: 0.875rem;
    color: #1800AD;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot:hover {
    color: #1E4DB7;
}

/* Submit Button */
.btn-login {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #1800AD 0%, #1E4DB7 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    margin-top: 0.5rem;
}

.btn-login:hover {
    background: linear-gradient(135deg, #1E4DB7 0%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

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

.btn-login i {
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.btn-login:hover i {
    transform: translateX(4px);
}

/* Footer */
.login-footer {
    margin-top: 1.5rem;
    text-align: center;
    max-width: 440px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.login-footer p {
    font-size: 0.9375rem;
    color: #64748B;
    margin: 0;
}

.login-footer a {
    color: #1800AD;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.login-footer a:hover {
    color: #1E4DB7;
}

/* ===============================================
   RESPONSIVE
   =============================================== */

@media (max-width: 1024px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }
    
    .login-left {
        display: none;
    }
    
    .login-right {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .login-right {
        padding: 2rem 1.5rem;
    }
    
    .login-header h2 {
        font-size: 1.625rem;
    }
}

/* ===============================================
   ANIMATIONS
   =============================================== */

.login-left {
    animation: slideInLeft 0.6s ease-out;
}

.login-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
