/* Auth Pages Wrapper - Layout padding'ini override eder */
.auth-page-wrapper {
    margin: -24px -20px -48px -20px;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-top: 0;
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--bg) 0%, rgba(123, 118, 105, 0.1) 100%);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    width: 100%;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    box-sizing: border-box;
}

/* Auth Card */
.auth-card {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text);
}

.auth-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
}

/* Auth Alerts */
.auth-alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
}

.auth-alert-error {
    background: #ffebee;
    border: 1px solid #c62828;
    color: #c62828;
}

.auth-alert-error ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.auth-alert-success {
    background: #e8f5e9;
    border: 1px solid #2e7d32;
    color: #2e7d32;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.auth-label-icon {
    font-size: 18px;
}

.auth-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 2px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    color: var(--text);
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(123, 118, 105, 0.1);
    background: rgba(255, 255, 255, 1);
}

.auth-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.auth-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: -4px;
}

.auth-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -8px 0;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.auth-checkbox-label {
    user-select: none;
}

/* Auth Buttons */
.auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.auth-button-primary {
    background: var(--accent);
    color: white;
}

.auth-button-primary:hover {
    background: var(--text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.auth-button-google {
    background: white;
    color: var(--text);
    border: 2px solid var(--border-soft);
}

.auth-button-google:hover {
    border-color: var(--accent);
    background: rgba(123, 118, 105, 0.05);
}

.auth-button-icon {
    font-size: 18px;
}

/* Auth Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 8px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-soft);
}

.auth-divider span {
    position: relative;
    background: var(--card-bg);
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
}

.auth-footer p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.auth-link:hover {
    text-decoration: underline;
}

/* Auth Decoration */
.auth-decoration {
    background: linear-gradient(135deg, var(--accent) 0%, var(--text) 100%);
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-decoration::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 20s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.auth-decoration-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.auth-decoration-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.auth-decoration-content > p {
    font-size: 16px;
    margin: 0 0 32px 0;
    opacity: 0.9;
}

.auth-decoration-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    opacity: 0.95;
}

.auth-feature-icon {
    font-size: 24px;
}

/* Auth Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(173, 173, 163, 0.85);
    backdrop-filter: blur(4px);
}

.auth-modal-content {
    position: relative;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 48px 40px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: var(--transition);
}

.auth-modal.active .auth-modal-content {
    transform: scale(1);
}

.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1;
}

.auth-modal-close:hover {
    background: var(--accent);
    color: white;
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 968px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-decoration {
        display: none;
    }
    
    .auth-card {
        padding: 40px 32px;
    }
}

@media (max-width: 640px) {
    .auth-page-wrapper {
        margin: -24px -12px -48px -12px;
        overflow-x: hidden;
        width: calc(100% + 24px);
        max-width: calc(100% + 24px);
    }
    
    .auth-page {
        padding: 0;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .auth-container {
        border-radius: 0;
        min-height: 100vh;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .auth-card {
        padding: 32px 24px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .auth-title {
        font-size: 28px;
    }
    
    .auth-modal-content {
        padding: 40px 24px;
        border-radius: 12px;
        max-width: calc(100vw - 40px);
        box-sizing: border-box;
    }
    
    .auth-input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

