/* Global Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Roboto', sans-serif; 
    background-color: #f3f4f6; 
    color: #374151;
    /* display: flex; ve ortalama kodları header/footer uyumu için kaldırıldı */
}

.reg-container {
    width: 100%;
    max-width: 500px;
}

.reg-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 40px;
    /* 🎯 DİNAMİK RENK ENTEGRASYONU */
    border-top: 5px solid var(--theme-color, #2563eb);
}

.card-header { text-align: center; margin-bottom: 30px; border-bottom: 1px solid #f3f4f6; padding-bottom: 20px; }
.card-header h2 { font-size: 1.8rem; margin-bottom: 5px; color: #111827; }
.card-header p { color: #6b7280; font-size: 0.9rem; }

/* Alert */
.alert-box { padding: 15px; border-radius: 6px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 0.9rem; }
.alert-box.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-box.success { background: #ecfdf5; color: #15803d; border: 1px solid #bbf7d0; }

.form-row { display: flex; gap: 15px; }
.form-group { margin-bottom: 20px; flex: 1; }

@media (max-width: 500px) {
    .form-row { flex-direction: column; gap: 0; }
}

.form-group label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 500; color: #374151; }
.form-group input {
    width: 100%; padding: 12px;
    border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 0.95rem; outline: none; transition: border-color 0.2s;
    font-family: inherit;
}

/* 🎯 DİNAMİK RENK ENTEGRASYONU */
.form-group input:focus { 
    border-color: var(--theme-color, #2563eb); 
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05); 
}

/* 🎯 DİNAMİK RENK ENTEGRASYONU */
.btn-register {
    width: 100%; padding: 14px; 
    background: var(--theme-color, #2563eb); 
    color: var(--theme-text, #ffffff);
    border: none; border-radius: 6px; font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: opacity 0.2s; margin-top: 10px;
}
.btn-register:hover { opacity: 0.9; }

/* 🎯 DİNAMİK RENK ENTEGRASYONU */
.bottom-link { text-align: center; margin-top: 25px; font-size: 0.9rem; color: #6b7280; border-top: 1px solid #f3f4f6; padding-top: 20px; }
.bottom-link a { color: var(--theme-color, #2563eb); text-decoration: none; font-weight: 500; }
.bottom-link a:hover { text-decoration: underline; }

.success-actions { text-align: center; }
.btn-login-link {
    display: inline-block; background: #10b981; color: white; padding: 12px 25px;
    border-radius: 6px; text-decoration: none; font-weight: 600;
}
.btn-login-link:hover { background: #059669; }

/* --- 🎯 YENİ: SÖZLEŞME ONAY ALANI STİLLERİ --- */
.reg-agreements {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agreement-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.4;
}

/* 🎯 DİNAMİK RENK ENTEGRASYONU */
.agreement-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--theme-color, #2563eb);
    cursor: pointer;
    flex-shrink: 0;
}

/* 🎯 DİNAMİK RENK ENTEGRASYONU */
.agreement-text a {
    color: var(--theme-color, #2563eb);
    font-weight: 700;
    text-decoration: underline;
}

.agreement-text a:hover {
    text-decoration: none;
}

/* --- 🎯 YENİ: SÖZLEŞME MODAL (POPUP) STİLLERİ --- */
.contract-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contract-modal.show {
    opacity: 1; 
    visibility: visible;
}

.contract-modal-content {
    background: #fff;
    width: 90%;
    max-width: 650px;
    border-radius: 12px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.contract-modal.show .contract-modal-content {
    transform: translateY(0);
}

.contract-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.contract-modal-header h3 {
    margin: 0; 
    font-size: 1.1rem; 
    color: #111827;
}

.close-modal-btn {
    background: #e2e8f0;
    border: none; 
    width: 32px; 
    height: 32px;
    border-radius: 50%; 
    color: #475569;
    cursor: pointer; 
    font-size: 1rem;
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: 0.2s;
}

.close-modal-btn:hover { 
    background: #fecaca; 
    color: #ef4444; 
}

.contract-modal-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}

.contract-modal-body h1, .contract-modal-body h2, .contract-modal-body h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: #1e293b;
}

.contract-modal-body p {
    margin-bottom: 12px;
}