
:root {
  /* Using the same cool, neutral developer-friendly color palette */
  --primary: #0f172a; /* Deep Navy */
  --primary-foreground: #ffffff;
  --secondary: #3b82f6; /* Bright Blue */
  --secondary-foreground: #ffffff;
  --accent: #10b981; /* Green */
  --accent-foreground: #ffffff;
  --ring: #3b82f6;
  --border: #e2e8f0; /* Light Gray */
  --input: #f1f5f9; /* Off-white */
  --radius: 0.5rem;
  --background: #ffffff; /* Pure white for cleaner look */
  --foreground: #0f172a; /* Deep Navy Text */
  --card: #ffffff;
  --card-foreground: #0f172a;
  --muted: #f8fafc;
  --muted-foreground: #64748b; /* Muted Gray Text */
  --destructive: #ef4444; /* Red */
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Auth Layout --- */
.auth-layout {
    display: flex;
    min-height: 100vh;
}

/* --- Left Side - Form --- */
.auth-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    background: var(--background);
}

.auth-logo {
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 24px;
    font-weight: 600;
}

.logo-text {
    color: var(--foreground);
}

.logo-accent {
    color: var(--secondary);
}

/* --- Right Side - Platform Overview --- */
.auth-carousel-side {
    flex: 1;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.auth-carousel-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.auth-carousel-side::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(59, 130, 246, 0.03) 2px, rgba(59, 130, 246, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(59, 130, 246, 0.03) 2px, rgba(59, 130, 246, 0.03) 4px);
    background-size: 40px 40px;
    opacity: 0.5;
    pointer-events: none;
}

.platform-overview {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.platform-overview img {
    width: 100%;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.08));
}

/* Hide on mobile */
@media (max-width: 992px) {
    .auth-carousel-side {
        display: none;
    }
}

/* Hide carousel on mobile */
@media (max-width: 992px) {
    .auth-carousel-side {
        display: none;
    }
    
    .auth-form-side {
        flex: 1;
        max-width: 100%;
    }
}

/* --- Auth Container (Form) --- */
.auth-container {
    background: var(--card);
    padding: 48px;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.auth-header {
    margin-bottom: 36px;
    text-align: center;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--foreground);
    letter-spacing: -0.02em;
}

.auth-header p {
    color: var(--muted-foreground);
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--foreground);
}

.label-with-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.label-with-link label {
    margin-bottom: 0;
}

.forgot-link {
    font-size: 13px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--background);
    color: var(--foreground);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease-in-out;
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-group input:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group .text-danger {
    color: var(--destructive);
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

.validation-summary {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: var(--destructive);
    font-size: 14px;
}

.alert {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.form-group.forgot-password {
    text-align: right;
    margin-top: -12px;
    margin-bottom: 24px;
}

.btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background: var(--secondary);
    color: var(--secondary-foreground);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background: #3578e8;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

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

.btn-secondary {
    background: var(--background);
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--muted);
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.email-login-form {
    margin-top: 24px;
}

.email-login-form .btn-primary {
    margin-top: 24px;
}

.auth-footer {
    margin-top: 28px;
    font-size: 14px;
    color: var(--muted-foreground);
    text-align: center;
}

.auth-footer a, .form-group a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover, .form-group a:hover {
    text-decoration: underline;
}

.logout-card {
    text-align: center;
}

.logout-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.logout-note {
    margin-top: 16px;
    color: var(--muted-foreground);
    font-size: 14px;
}

.logout-success {
    text-align: center;
}

.logout-success .alert {
    margin-bottom: 14px;
}

.logout-redirect-text {
    color: var(--muted-foreground);
    font-size: 14px;
    margin-bottom: 10px;
}

#logout-countdown {
    font-weight: 700;
    color: var(--foreground);
}

.logout-link {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
}

.logout-link:hover {
    text-decoration: underline;
}

/* Adjust auth-container for smaller screens */
@media (max-width: 992px) {
    .auth-container {
        padding: 32px 24px;
        box-shadow: none;
    }
    
    .auth-header h1 {
        font-size: 28px;
    }
    
    .auth-logo {
        position: static;
        margin-bottom: 40px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .auth-form-side {
        padding: 40px 20px;
    }
    
    .auth-container {
        padding: 24px 20px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
}

/* --- Social Login Styles --- */
.social-login-section {
    margin-bottom: 24px;
}

.social-login-section form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Icon-only social login buttons */
.social-login-icons-only form {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
}

.btn-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn-social-icon:hover {
    background: var(--muted);
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.btn-social-icon svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 28px 0;
    color: var(--muted-foreground);
    font-size: 13px;
    text-transform: lowercase;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.login-divider span {
    padding: 0 16px;
}

.social-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 32px 0 24px 0;
    color: var(--muted-foreground);
    font-size: 14px;
}

.social-login-divider::before,
.social-login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.social-login-divider span {
    padding: 0 16px;
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.social-login-buttons form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background);
    color: var(--foreground);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease-in-out;
}

.btn-social:hover {
    background: var(--muted);
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

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

.btn-social svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.btn-social span {
    font-weight: 500;
}

/* Specific social button styles */
.btn-google:hover {
    background: #f8fafc;
}

.btn-github:hover {
    background: #f8fafc;
}

.btn-linkedin:hover {
    background: #f8fafc;
}

@media (max-width: 480px) {
    .social-login-section form {
        gap: 8px;
    }
    
    .social-login-icons-only form {
        gap: 10px;
    }
    
    .btn-social-icon {
        width: 44px;
        height: 44px;
    }
    
    .btn-social-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .btn-social {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .btn-social svg {
        width: 16px;
        height: 16px;
    }
}
