/* ================================================================
   NexaBoard - Authentication Pages Styles
   ================================================================ */

.auth-page {
    min-height: 100vh;
    background: var(--bg-primary);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* Brand Section */
.auth-brand {
    position: relative;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 50%, var(--primary-800) 100%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    inset: 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");
    opacity: 0.5;
}

.auth-brand::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-30px, 30px) rotate(5deg);
    }
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.auth-logo svg {
    width: 48px;
    height: 48px;
}

.auth-logo span {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.auth-brand-text h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.auth-brand-text p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 3rem;
}

/* Features */
.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-fast);
}

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

.auth-feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.auth-feature-icon i {
    font-size: 1.375rem;
    color: white;
}

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

.auth-feature-text p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.auth-brand-footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 2rem;
}

.auth-brand-footer p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Form Container */
.auth-form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--bg-secondary);
}

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

.auth-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-form-header p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.forgot-link {
    font-size: 0.8125rem;
    color: var(--primary-500);
    font-weight: 500;
    transition: var(--transition-fast);
}

.forgot-link:hover {
    color: var(--primary-600);
    text-decoration: underline;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper > i {
    position: absolute;
    left: 1rem;
    font-size: 1.25rem;
    color: var(--text-tertiary);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 52px;
    padding: 0 1rem 0 3rem;
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

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

.input-wrapper input:focus {
    outline: none;
    background: var(--bg-secondary);
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    padding: 0.5rem;
    color: var(--text-tertiary);
    transition: var(--transition-fast);
}

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

.password-toggle i {
    font-size: 1.25rem;
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-wrapper input {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.checkbox-wrapper .checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.checkbox-wrapper input:checked + .checkmark {
    background: var(--primary-500);
    border-color: var(--primary-500);
}

.checkbox-wrapper input:checked + .checkmark::after {
    content: '\eb7b';
    font-family: 'remixicon';
    font-size: 0.875rem;
    color: white;
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Submit Button */
.btn-block {
    width: 100%;
    height: 52px;
    font-size: 1rem;
}

.btn-block i {
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

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

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* Social Login */
.social-login {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 48px;
    padding: 0 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.social-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-500);
    box-shadow: var(--shadow-md);
}

.social-btn i {
    font-size: 1.25rem;
}

/* Form Footer */
.auth-form-footer {
    margin-top: 2rem;
    text-align: center;
}

.auth-form-footer p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.auth-form-footer a {
    color: var(--primary-500);
    font-weight: 600;
    transition: var(--transition-fast);
}

.auth-form-footer a:hover {
    color: var(--primary-600);
    text-decoration: underline;
}

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

    .auth-brand {
        display: none;
    }

    .auth-form-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .social-login {
        grid-template-columns: 1fr;
    }

    .social-btn span {
        display: inline;
    }
}
