/* Auth Page Specific Styles */

.auth-main {
    padding: 3rem 0;
    background: linear-gradient(135deg, #F8F4E3 0%, #EBC42A 100%);
    min-height: calc(100vh - 200px);
}

.auth-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #F8F4E3;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(28, 28, 28, 0.1);
    overflow: hidden;
    position: relative;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #EBC42A, #1C1C1C, #EBC42A);
}

/* Auth Header */
.auth-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    background-color: #F8F4E3;
}

.auth-header h2 {
    color: #1C1C1C;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #666;
    font-size: 1rem;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    background-color: #F8F4E3;
    border-bottom: 2px solid rgba(28, 28, 28, 0.1);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.tab-btn.active {
    color: #EBC42A;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #EBC42A;
}

.tab-btn:hover {
    color: #EBC42A;
    background-color: rgba(235, 196, 42, 0.1);
}

.tab-btn i {
    font-size: 1.1rem;
}

/* Auth Forms */
.auth-form {
    display: none;
    padding: 2rem;
    background-color: #F8F4E3;
}

.auth-form.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    color: #1C1C1C;
    font-weight: 600;
    font-size: 0.9rem;
}

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

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: #666;
    font-size: 1rem;
    z-index: 2;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 3rem 1rem 3rem;
    border: 2px solid rgba(28, 28, 28, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    background-color: #F8F4E3;
    color: #1C1C1C;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #EBC42A;
    box-shadow: 0 0 0 3px rgba(235, 196, 42, 0.1);
    background-color: white;
}

.input-wrapper input::placeholder {
    color: #999;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1rem;
    transition: color 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.password-toggle:hover {
    color: #EBC42A;
    background-color: rgba(235, 196, 42, 0.1);
    border-radius: 50%;
}

/* Form Options */
.form-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #EBC42A;
    margin-top: 0.25rem;
}

.checkbox-item span {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-item a {
    color: #EBC42A;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-item a:hover {
    text-decoration: underline;
}

.forgot-password {
    color: #EBC42A;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
    align-self: flex-end;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    background-color: #EBC42A;
    color: #1C1C1C;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: #1C1C1C;
    color: #EBC42A;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(28, 28, 28, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn i {
    font-size: 1rem;
}


/* Auth Info */
.auth-info {
    padding: 2rem;
    background-color: #F8F4E3;
    border-top: 1px solid rgba(28, 28, 28, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(235, 196, 42, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item:hover {
    background-color: rgba(235, 196, 42, 0.2);
    transform: translateX(5px);
}

.info-item i {
    font-size: 1.5rem;
    color: #EBC42A;
    width: 40px;
    text-align: center;
}

.info-item h4 {
    color: #1C1C1C;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Form Validation Styles */
.form-group.error input {
    border-color: #FF6B6B;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-group.error .error-message {
    color: #FF6B6B;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.form-group.success input {
    border-color: #4ECDC4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

/* Loading State */
.submit-btn.loading {
    background-color: #666;
    cursor: not-allowed;
    pointer-events: none;
}

.submit-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        margin: 0 1rem;
        border-radius: 15px;
    }
    
    .auth-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .auth-header h2 {
        font-size: 1.75rem;
    }
    
    .auth-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .google-login,
    .auth-info {
        padding: 1.5rem;
    }
    
    .tab-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .tab-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .auth-main {
        padding: 2rem 0;
    }
    
    .auth-container {
        margin: 0 0.5rem;
        border-radius: 10px;
    }
    
    .auth-header {
        padding: 1rem 1rem 0.5rem;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    .auth-form {
        padding: 1rem;
    }
    
    .google-login,
    .auth-info {
        padding: 1rem;
    }
    
    .submit-btn,
    .google-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .info-item {
        padding: 0.75rem;
    }
    
    .info-item i {
        font-size: 1.25rem;
        width: 30px;
    }
}

/* Focus States for Accessibility */
.input-wrapper input:focus,
.submit-btn:focus,
.google-btn:focus,
.tab-btn:focus {
    outline: 2px solid #EBC42A;
    outline-offset: 2px;
}

/* Hover Effects */
.form-group:hover label {
    color: #EBC42A;
}

.input-wrapper:hover input {
    border-color: rgba(235, 196, 42, 0.5);
}

/* Animation for form elements */
.form-group {
    animation: slideInLeft 0.5s ease;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Success Animation */
.form-group.success {
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Error Animation */
.form-group.error {
    animation: errorShake 0.6s ease;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Google Sign-In Bölümü */
.google-login-section {
    padding-top: 20px;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* Google Sign-In Button Styling */
#g_id_onload {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.g_id_signin {
    display: flex;
    justify-content: center;
}

/* Google Sign-In Button Custom Styling */
.g_id_signin > div {
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
}

.g_id_signin > div:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .google-login-section {
        padding-top: 15px;
    }
    
    .divider {
        margin: 15px 0;
    }
}

