/* QR Menü Pro - Auth Pages Styles */

.auth-page {
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-low) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.auth-container {
    display: flex;
    background-color: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
}

.auth-container.wide {
    max-width: 1100px;
}

.auth-form-side {
    flex: 1;
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-visual-side {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.auth-visual-side::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    top: -50%;
    left: -50%;
}

.visual-content {
    position: relative;
    z-index: 2;
    max-width: 350px;
}

.visual-icon {
    font-size: 4rem;
    color: var(--secondary-container);
    margin-bottom: var(--space-md);
}

.visual-content h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.visual-content ul {
    list-style: none;
}

.visual-content li {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.visual-content li i {
    color: var(--secondary-container);
}

/* Forms */
.auth-header {
    margin-bottom: var(--space-lg);
}

.auth-header .logo {
    margin-bottom: var(--space-md);
}
.justify-center {
    justify-content: center;
}

.auth-header h2 {
    font-size: 1.8rem;
    margin-bottom: var(--space-xs);
}

.auth-header p {
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-row {
    display: flex;
    gap: var(--space-md);
}
.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
}

.input-wrapper .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--outline);
}

.input-wrapper input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
    background-color: var(--bg-surface);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(166, 53, 23, 0.1);
    background-color: #fff;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--outline);
    cursor: pointer;
}

/* Checkbox & Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}
.form-options.terms {
    justify-content: flex-start;
}

.custom-checkbox {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: var(--bg-surface);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--primary);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.forgot-link {
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-footer {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--outline-variant);
}

.auth-footer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.auth-footer a {
    font-weight: 600;
}

.promo-text {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background-color: var(--bg-terracotta-light);
    color: var(--primary);
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Plan Selector */
.plan-selector {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.plan-option {
    flex: 1;
    position: relative;
    cursor: pointer;
    margin: 0;
}

.plan-option input {
    position: absolute;
    opacity: 0;
}

.plan-content {
    border: 2px solid var(--outline-variant);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    text-align: center;
    transition: var(--transition-fast);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-surface);
}

.plan-option:hover .plan-content {
    border-color: var(--outline);
}

.plan-option.active .plan-content {
    border-color: var(--primary);
    background-color: rgba(166, 53, 23, 0.05);
}

.plan-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.plan-price {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.plan-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.plan-option.highlight .plan-content {
    border-color: var(--secondary);
}
.plan-option.highlight.active .plan-content {
    background-color: rgba(126, 87, 0, 0.05);
}

.badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: var(--radius-xl);
    white-space: nowrap;
    font-weight: 600;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-error {
    background-color: rgba(186, 26, 26, 0.1);
    color: var(--error);
    border: 1px solid rgba(186, 26, 26, 0.2);
}
.alert-success {
    background-color: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(46, 125, 50, 0.2);
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
    .auth-visual-side {
        display: none;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .plan-selector {
        flex-direction: column;
    }
}
