/* Auth Pages Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff8c00;
    --secondary-color: #e67e00;
    --dark-color: #2c2416;
    --light-color: #fff5e6;
    --white: #ffffff;
    --gray: #666;
    --light-gray: #e0e0e0;
    --success: #28a745;
    --error: #dc3545;
    --warning: #ffc107;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--light-color) 0%, #fff 100%);
    min-height: 100vh;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    max-width: 1200px;
    width: 100%;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-left {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.auth-logo p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.auth-info h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list i {
    font-size: 1.2rem;
}

.auth-right {
    padding: 60px 50px;
    overflow-y: auto;
    max-height: 90vh;
}

.auth-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--gray);
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--light-gray);
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--primary-color);
    margin-right: 5px;
    width: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--gray);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 0.9rem;
    color: var(--gray);
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.btn {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: var(--gray);
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-note {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #856404;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-note i {
    font-size: 1.2rem;
}

/* Message Styles */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 10px;
}

.message.show {
    display: flex;
}

.message i {
    font-size: 1.2rem;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }

    .auth-left {
        padding: 40px 30px;
    }

    .auth-right {
        padding: 40px 30px;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .auth-container {
        padding: 10px;
    }

    .auth-wrapper {
        display: flex;
        flex-direction: column;
        border-radius: 15px;
    }

    .auth-left {
        padding: 30px 20px;
        order: 1; /* Üstte göster */
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        color: var(--white);
    }

    .auth-right {
        padding: 30px 20px;
        order: 2; /* Altta göster */
        max-height: none;
    }

    .auth-logo h1 {
        font-size: 2rem;
    }

    .auth-logo p {
        margin-bottom: 20px;
    }

    .auth-info h2 {
        font-size: 1.5rem;
    }

    .auth-title {
        font-size: 1.8rem;
    }

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

    .feature-list {
        margin-bottom: 0;
    }

    .feature-list li {
        margin-bottom: 10px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 5px;
    }

    .auth-wrapper {
        border-radius: 10px;
    }

    .auth-left {
        padding: 20px 15px;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        color: var(--white);
    }

    .auth-right {
        padding: 20px 15px;
    }

    .auth-logo h1 {
        font-size: 1.5rem;
    }

    .auth-info {
        display: none; /* Çok küçük ekranlarda gizle */
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.95rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* Simple Login Page Specific Styles */
.auth-simple {
    max-width: 500px;
    margin: 0 auto;
}

.auth-simple .auth-wrapper {
    grid-template-columns: 1fr;
}

.auth-simple .auth-left {
    display: none;
}

.forgot-password {
    text-align: right;
    margin-top: 10px;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: var(--gray);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--light-gray);
}

.divider span {
    padding: 0 15px;
    font-size: 0.9rem;
}

/* Google Login Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 30px;
    background: white;
    color: #444;
    border: 2px solid #dadce0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #d2d3d4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.btn-google svg {
    flex-shrink: 0;
}

/* Debug Panel Styles */
#debugPanel {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#debugMessages {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

/* Additional Responsive Fixes */
@media (max-width: 768px) {
    .auth-simple {
        max-width: 100%;
    }

    .auth-right {
        padding: 20px 15px;
        max-height: none;
    }

    .auth-form-container {
        max-width: 100%;
        padding: 0;
    }

    #debugPanel {
        padding: 10px;
        font-size: 10px;
    }

    #debugMessages {
        font-size: 10px;
        padding: 8px;
        max-height: 200px;
    }

    .auth-logo h1 {
        font-size: 1.8rem !important;
    }

    .auth-logo p {
        font-size: 0.85rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .important-info-title {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }

    .important-info-title i {
        font-size: 1.3rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .message {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 5px;
    }

    .auth-wrapper {
        border-radius: 10px;
    }

    .auth-right {
        padding: 20px 12px;
    }

    .auth-logo h1 {
        font-size: 1.5rem !important;
        margin-top: 10px;
    }

    .auth-logo p {
        font-size: 0.8rem;
    }

    .auth-title {
        font-size: 1.3rem !important;
    }

    .auth-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    #debugPanel {
        padding: 8px;
        margin-bottom: 15px;
    }

    #debugPanel h3 {
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }

    #debugMessages {
        font-size: 9px;
        padding: 6px;
        max-height: 150px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .divider {
        margin: 15px 0;
        font-size: 0.85rem;
    }

    .auth-switch,
    .auth-note {
        font-size: 0.85rem;
        padding: 12px;
        margin-top: 15px;
    }

    .important-info-title {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }

    .important-info-title i {
        font-size: 1.2rem;
    }

    .message {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .message i {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .auth-logo h1 {
        font-size: 1.3rem !important;
    }

    .auth-title {
        font-size: 1.2rem !important;
    }

    .important-info-title {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
        font-size: 0.95rem !important;
    }

    .important-info-title i {
        font-size: 1.1rem;
    }

    #debugMessages {
        font-size: 8px;
        max-height: 120px;
    }
}
