/* =====================================================
   BEES - Pages d'authentification
   ===================================================== */

.auth-page {
    min-height: 100vh;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* Visual Side */
.auth-visual {
    position: relative;
    background: linear-gradient(135deg, var(--charcoal) 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl);
    overflow: hidden;
}

.auth-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,193,7,0.15) 0%, transparent 70%);
}

.hexagon-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='52' viewBox='0 0 60 52' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill='none' stroke='%23FFC107' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
    background-size: 60px 52px;
}

.auth-visual-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 400px;
}

.auth-branding {
    margin-bottom: var(--space-3xl);
}

.logo-icon.large {
    font-size: 5rem;
    color: var(--honey);
    display: block;
    margin-bottom: var(--space-md);
    animation: pulse 3s ease-in-out infinite;
}

.auth-branding h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.auth-branding .tagline {
    font-size: 1.125rem;
    color: var(--gray-400);
}

.auth-quote {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid rgba(255,255,255,0.1);
}

.auth-quote blockquote {
    font-size: 1rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    color: var(--gray-300);
}

.auth-quote cite {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-style: normal;
}

.cite-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--honey), var(--honey-dark));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.auth-quote cite strong {
    display: block;
    font-size: 0.9375rem;
}

.auth-quote cite span {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* Stats */
.auth-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
}

.auth-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--honey);
}

.stat-text {
    font-size: 0.8125rem;
    color: var(--gray-400);
}

/* Form Side */
.auth-form-container {
    display: flex;
    flex-direction: column;
    padding: var(--space-2xl);
    background: var(--white);
    overflow-y: auto;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: var(--space-xl);
    transition: color var(--transition-fast);
}

.auth-back:hover {
    color: var(--charcoal);
}

.auth-form-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.auth-header {
    margin-bottom: var(--space-xl);
}

.auth-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.auth-header p {
    color: var(--gray-500);
}

/* Form Elements */
.auth-form {
    margin-bottom: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
}

.form-link {
    font-size: 0.8125rem;
    color: var(--honey-dark);
    font-weight: 400;
}

.form-link:hover {
    text-decoration: underline;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: all var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--honey);
    box-shadow: 0 0 0 3px rgba(255,193,7,0.2);
}

input::placeholder {
    color: var(--gray-400);
}

.input-password {
    position: relative;
}

.input-password input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.toggle-password:hover {
    color: var(--charcoal);
}

.toggle-password svg {
    width: 20px;
    height: 20px;
}

.toggle-password.visible svg {
    color: var(--honey-dark);
}

/* Password Strength */
.password-strength {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    margin-top: var(--space-sm);
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all var(--transition-base);
}

.strength-bar.weak {
    width: 25%;
    background: var(--error);
}

.strength-bar.medium {
    width: 50%;
    background: var(--warning);
}

.strength-bar.strong {
    width: 75%;
    background: var(--info);
}

.strength-bar.very-strong {
    width: 100%;
    background: var(--success);
}

/* Checkbox */
.form-checkbox {
    margin-bottom: var(--space-xl);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--charcoal-light);
    cursor: pointer;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    position: relative;
    transition: all var(--transition-fast);
}

.checkbox-label input:checked + .checkmark {
    background: var(--honey);
    border-color: var(--honey);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--charcoal);
    font-size: 0.75rem;
    font-weight: 700;
}

.checkbox-label a {
    color: var(--honey-dark);
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.form-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--charcoal-light);
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--cream);
    border-radius: var(--radius-md);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-divider span {
    font-size: 0.8125rem;
    color: var(--gray-400);
    text-transform: uppercase;
}

/* Social Buttons */
.auth-social {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: all var(--transition-fast);
}

.btn-social:hover {
    border-color: var(--gray-300);
    background: var(--gray-100);
}

.btn-social svg {
    width: 20px;
    height: 20px;
}

/* Switch Link */
.auth-switch {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: 0.9375rem;
    color: var(--gray-500);
}

.auth-switch a {
    color: var(--honey-dark);
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-visual {
        display: none;
    }
    
    .auth-form-container {
        padding: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-form-wrapper {
        max-width: 100%;
    }
}

