/* Auth Pages CSS - Kayıt ve Giriş Sayfaları */

.auth-main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-white) 100%);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    background: var(--primary-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.auth-form-wrapper {
    flex: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.auth-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: var(--primary-gold);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: var(--primary-white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 12px;
}

.checkbox-group {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
    transform: scale(1.2);
    accent-color: var(--primary-gold);
}

.checkbox-label a {
    color: var(--primary-gold);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0;
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-light);
}

.auth-links p {
    margin-bottom: 10px;
    color: var(--text-light);
}

.auth-links a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Auth Benefits Sidebar */
.auth-benefits {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    color: var(--primary-white);
    padding: 30px;
    border-radius: 15px;
    height: fit-content;
}

.auth-benefits h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.auth-benefits ul {
    list-style: none;
}

.auth-benefits li {
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.auth-benefits li i {
    margin-right: 10px;
    background: rgba(255, 255, 255, 0.2);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

.alert-success {
    background: #efe;
    color: #363;
    border-left: 4px solid #363;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert i {
    font-size: 16px;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 5px;
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
    background: #ccc;
}

.password-strength-weak { background: #e74c3c; width: 33%; }
.password-strength-medium { background: #f39c12; width: 66%; }
.password-strength-strong { background: #27ae60; width: 100%; }

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        padding: 20px;
        margin: 20px;
    }
    
    .auth-benefits {
        order: -1;
        margin-bottom: 20px;
    }
    
    .auth-form {
        max-width: none;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-main {
        padding: 20px 0;
    }
    
    .auth-container {
        margin: 10px;
        padding: 15px;
    }
    
    .form-group input {
        font-size: 16px; /* iOS zoom prevention */
    }
}

/* Loading Animation */
.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 #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Form Validation Styles */
.form-group input:invalid {
    border-color: #e74c3c;
}

.form-group input:valid {
    border-color: #27ae60;
}

.form-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Social Login Buttons */
.social-login {
    margin: 20px 0;
    text-align: center;
}

.social-login-divider {
    position: relative;
    margin: 20px 0;
    text-align: center;
    color: var(--text-light);
}

.social-login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-light);
}

.social-login-divider span {
    background: var(--primary-white);
    padding: 0 15px;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    margin: 5px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.btn-social:hover {
    transform: translateY(-2px);
}

.btn-google {
    background: #db4437;
    color: white;
}

.btn-facebook {
    background: #3b5998;
    color: white;
}