/**
 * HYDRA VPS - Authentication Pages Styles
 * Premium split-screen auth layout
 */

.auth-page {
    min-height: 100vh;
    background-color: var(--gray-100);
}

.auth-container {
    display: flex;
    min-height: 100vh;
}

/* Left Panel - Branding */
.auth-left {
    display: none;
    width: 45%;
    background: linear-gradient(135deg, #1E3A5F 0%, #152C4A 50%, #0F172A 100%);
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-left::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.auth-branding {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 3rem;
    color: var(--white);
}

.auth-branding .logo {
    margin-bottom: 2rem;
}

.auth-branding .logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.auth-branding .logo-text {
    color: var(--white);
}

.auth-branding .logo-accent {
    color: rgba(255, 255, 255, 0.9);
}

.auth-branding h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.auth-branding > p {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 400px;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.auth-feature:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
}

.auth-feature-icon {
    font-size: 1.5rem;
}

.auth-feature span:last-child {
    font-size: 1rem;
    font-weight: 500;
}

/* Right Panel - Form */
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: var(--gray-50);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .logo {
    display: inline-flex;
    margin-bottom: 1.5rem;
}

.auth-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin: 0;
}

.auth-card .form-group {
    margin-bottom: 1.25rem;
}

.auth-card .form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.auth-card .form-control {
    height: 48px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.auth-card .form-control:focus {
    border-color: #FF5722;
    box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.1);
}

.auth-card .form-control::placeholder {
    color: var(--gray-400);
}

.auth-card .btn-primary {
    height: 52px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
    border: none;
    transition: all 0.3s ease;
}

.auth-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.3);
}

.auth-card .d-flex {
    display: flex;
}

.auth-card .justify-content-between {
    justify-content: space-between;
}

.auth-card .align-items-center {
    align-items: center;
}

.auth-card .mb-4 {
    margin-bottom: 1.5rem;
}

.auth-card .form-check {
    min-height: auto;
}

.auth-card .form-check-label {
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.auth-card a {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.auth-card a:hover {
    color: var(--primary-dark);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.9375rem;
    color: var(--gray-500);
}

.auth-footer a {
    font-weight: 600;
}

/* Alert styling in auth */
.auth-card .alert {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9375rem;
}

/* Responsive */
@media (min-width: 1024px) {
    .auth-left {
        display: block;
    }
    
    .auth-right {
        width: 55%;
        padding: 3rem;
    }
    
    .auth-card {
        padding: 3rem;
    }
    
    .auth-header .logo {
        display: none;
    }
}

@media (min-width: 1200px) {
    .auth-branding {
        padding: 4rem;
    }
    
    .auth-branding h1 {
        font-size: 3rem;
    }
}

/* Mobile logo display */
@media (max-width: 1023px) {
    .auth-header .logo {
        display: inline-flex;
        justify-content: center;
    }
    
    .auth-card {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    }
}

/* Admin Auth Variant */
.auth-page.admin-auth .auth-left {
    background: linear-gradient(135deg, #1E3A5F 0%, #152C4A 50%, #0F172A 100%);
}

.auth-page.admin-auth .auth-card .btn-primary {
    background: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
}

.auth-page.admin-auth .auth-card .btn-primary:hover {
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.3);
}

/* Back to website link */
.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin-top: 1rem;
    transition: color 0.2s ease;
}

.auth-back-link:hover {
    color: var(--primary);
}

/* Password strength indicator */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 0.5rem;
}

.password-strength-bar {
    flex: 1;
    height: 4px;
    background-color: var(--gray-200);
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.password-strength-bar.weak {
    background-color: var(--danger);
}

.password-strength-bar.medium {
    background-color: var(--warning);
}

.password-strength-bar.strong {
    background-color: var(--success);
}

/* Social login buttons */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 48px;
    background-color: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.2s ease;
}

.btn-social:hover {
    border-color: var(--gray-300);
    background-color: var(--gray-50);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--gray-200);
}
