/* Authentication Pages CSS */

@import url('professional.css');

/* Auth Layout */
.auth-container {
    min-height: 100vh;
    display: flex;
    position: relative;
    overflow: hidden;
}

/* Split Layout */
.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

/* Left Side - Form */
.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    background: var(--bg-primary);
    position: relative;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 480px;
}

/* Right Side - Visual */
.auth-visual-side {
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-visual-content {
    text-align: center;
    padding: var(--space-12);
    position: relative;
    z-index: 2;
}

/* Background Pattern */
.auth-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image:
        linear-gradient(rgba(0, 220, 130, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 220, 130, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

.auth-gradient {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 220, 130, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 20s ease-in-out infinite;
}

/* Logo */
.auth-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-12);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.auth-logo:hover {
    opacity: 0.8;
}

.auth-logo img {
    height: 48px;
}

.auth-logo span {
    font-size: var(--font-2xl);
    font-weight: 800;
    color: var(--text-primary);
}

/* Form Styles */
.auth-form {
    width: 100%;
}

.auth-header {
    margin-bottom: var(--space-8);
}

.auth-title {
    font-size: var(--font-4xl);
    font-weight: 800;
    margin-bottom: var(--space-3);
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-lg);
}

/* Form Groups */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: var(--font-base);
    transition: all var(--transition-base);
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 220, 130, 0.1);
    background: var(--bg-tertiary);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

/* Input with Icon */
.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}

.input-icon + .form-input {
    padding-left: var(--space-12);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color var(--transition-base);
}

.password-toggle:hover {
    color: var(--text-secondary);
}

/* Checkbox */
.form-checkbox-group {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.form-checkbox {
    width: 20px;
    height: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
    appearance: none;
    transition: all var(--transition-base);
}

.form-checkbox:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.form-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-primary);
    font-weight: bold;
}

.checkbox-label {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    cursor: pointer;
}

/* Form Actions */
.form-actions {
    margin-top: var(--space-8);
}

.btn-auth {
    width: 100%;
    padding: var(--space-4);
    font-size: var(--font-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
}

.btn-auth-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-primary);
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 220, 130, 0.3);
}

.btn-auth-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.btn-auth-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
}

/* Social Login */
.divider {
    text-align: center;
    margin: var(--space-8) 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-default);
}

.divider span {
    background: var(--bg-primary);
    padding: 0 var(--space-4);
    position: relative;
    color: var(--text-tertiary);
    font-size: var(--font-sm);
}

.social-login {
    display: flex;
    gap: var(--space-4);
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-social:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* Form Footer */
.form-footer {
    margin-top: var(--space-8);
    text-align: center;
}

.form-footer-text {
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

.form-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity var(--transition-base);
}

.form-link:hover {
    opacity: 0.8;
}

/* Error Messages */
.form-error {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-lg);
    color: #EF4444;
    font-size: var(--font-sm);
    margin-bottom: var(--space-6);
}

.form-success {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: rgba(0, 220, 130, 0.1);
    border: 1px solid rgba(0, 220, 130, 0.2);
    border-radius: var(--radius-lg);
    color: var(--primary);
    font-size: var(--font-sm);
    margin-bottom: var(--space-6);
}

/* 404 Page */
.error-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    text-align: center;
    background: var(--bg-primary);
    position: relative;
}

.error-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.error-code {
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-6);
}

.error-title {
    font-size: var(--font-3xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.error-message {
    color: var(--text-secondary);
    font-size: var(--font-lg);
    margin-bottom: var(--space-8);
}

.error-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

/* Logout Page */
.logout-message {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-6);
    background: rgba(0, 220, 130, 0.1);
    border: 1px solid rgba(0, 220, 130, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-8);
}

.logout-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid var(--bg-primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-visual-side {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-form-side {
        padding: var(--space-4);
    }

    .auth-title {
        font-size: var(--font-3xl);
    }

    .social-login {
        flex-direction: column;
    }

    .error-code {
        font-size: 5rem;
    }
}