/**
 * PrestyBI - Login Premium
 */

.login-container {
    min-height: 100vh;
    display: flex;
    position: relative;
}

.login-container::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse at 0% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.login-left {
    flex: 1;
    background: linear-gradient(160deg, #13112b 0%, #0c0a1d 50%, #1a1735 100%);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(6, 182, 212, 0.06) 0%, transparent 40%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, 2%) rotate(1deg); }
    50% { transform: translate(0%, 4%) rotate(0deg); }
    75% { transform: translate(-2%, 2%) rotate(-1deg); }
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.brand-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.brand h1 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.login-left h2 {
    font-size: 2.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.15;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.login-left h2 span {
    background: linear-gradient(135deg, #818cf8 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-left p {
    color: #a5b4fc;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    color: #e0e7ff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
}

.feature i {
    width: 20px;
    height: 20px;
    color: #818cf8;
}

.login-right {
    width: 520px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    z-index: 1;
}

.login-box {
    width: 100%;
    max-width: 380px;
}

.login-box h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.login-box .subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: none;
}

.login-box .form-group {
    margin-bottom: 1.5rem;
}

.login-box label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.625rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: all 0.2s;
}

.toggle-password:hover {
    color: var(--primary);
    opacity: 1;
}

.toggle-password i {
    width: 20px;
    height: 20px;
}

.btn-login {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.45);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-footer-left {
    margin-top: auto;
    padding-top: 3rem;
    font-size: 0.85rem;
    color: #6b7280;
    position: relative;
    z-index: 1;
}

@media (max-width: 1100px) {
    .login-left {
        padding: 3rem;
    }
    
    .login-left h2 {
        font-size: 2.25rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .login-right {
        width: 450px;
    }
}

@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-left {
        padding: 2.5rem;
        min-height: auto;
    }
    
    .login-left h2 {
        font-size: 1.75rem;
    }
    
    .login-left p {
        margin-bottom: 2rem;
    }
    
    .features {
        display: none;
    }
    
    .login-right {
        width: 100%;
        flex: 1;
        padding: 2.5rem;
    }
}
