body {
    background-color: #0a0e14;
    color: #e6edf3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
}

.register-container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    margin: 20px auto;
    box-sizing: border-box;
}

@media (max-width: 850px) {
    .register-container {
        max-width: 500px;
    }
    
}
@media (max-width: 1000px) {
    .logo-container{
        display: none !important;
    }
}

@media (max-width: 520px) {
    .register-container {
        padding: 10px;
        margin: 10px auto;
    }
}

.register-card {
    background-color: #111827;
    border-radius: 8px;
    border: 1px solid #1f2937;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.register-header {
    padding: 1.5rem;
    border-bottom: 1px solid #1f2937;
}

.logo-container {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    max-width: 50%;
    max-height: 80vh;
    overflow: hidden;
}
.fb-logo{
    margin-left: 160px !important;
    width: 70%;
    max-width: 100%;
    height: auto;
    display: block;
}

.logo-container i {
    color: #10b981;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.logo-text {
    color: #e6edf3;
}

.register-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    max-height: 80vh;
    scrollbar-width: thin;
    scrollbar-color: #222b3a #181c23;
}

/* Chrome, Edge, Safari için */
.register-body::-webkit-scrollbar {
    width: 8px;
    background: #181c23;
    border-radius: 8px;
}
.register-body::-webkit-scrollbar-thumb {
    background: #222b3a;
    border-radius: 8px;
    transition: background 0.3s;
}
.register-body::-webkit-scrollbar-thumb:hover {
    background: #2d3748;
}

@media (max-width: 600px) {
    .register-body {
        max-height: 50vh;
        padding: 1.5rem 1rem;
    }
}


@media (max-width: 520px) {
    .register-body {
        padding: 1.5rem 1rem;
    }
}

.register-body h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #e6edf3;
    font-size: 1.5rem;
}

.register-description {
    color: #9ca3af;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 851px) {
    .form-row {
        display: flex;
        gap: 1rem;
    }
    
    .form-col {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    /* Telefon ve Şifre Tekrar alanlarının hizalanması için */
    .form-col .form-group:nth-child(1) {
        flex: 1;
    }
    
    .form-col .form-group:nth-child(2) {
        margin-top: auto;
    }
    
}

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

.form-group label {
    font-size: 0.9rem;
    color: #e6edf3;
    font-weight: 500;
}

.required {
    color: #ef4444;
}

.form-group input {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    border: 1px solid #1f2937;
    background-color: #1f2937;
    color: #e6edf3;
    font-size: 1rem;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #10b981;
}

/* Username feedback stilleri */
.username-feedback {
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.username-feedback.error {
    color: #ef4444;
}

.username-feedback.success {
    color: #10b981;
}

/* Şifre geri bildirim stilleri */
.password-feedback {
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.password-feedback.error {
    color: #ef4444;
    display: block;
}

.password-feedback.success,
.email-feedback.success {
    color: #10b981;
    display: block;
}

.hidden {
    display: none;
}

.email-feedback, .phone-feedback {
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.email-feedback.error, .phone-feedback.error {
    color: #ef4444;
    display: block;
}

.phone-input-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.country-select {
    width: 120px;
    padding: 8px;
    border: 1px solid #374151;
    border-radius: 6px;
    background-color: #1f2937;
    color: #e5e7eb;
    font-size: 14px;
}

.phone-input-wrapper {
    flex: 1;
}

/* Şifre gücü göstergesi */
.password-strength-meter {
    height: 3px;
    background-color: transparent;
    border-radius: 3px;
    margin-top: 2px;
    margin-bottom: 0;
    overflow: hidden;
}

.strength-meter-bar {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 0.3s, background-color 0.3s;
}

.strength-meter-bar.weak {
    background-color: #ef4444;
    width: 25%;
}

.strength-meter-bar.medium {
    background-color: #f59e0b;
    width: 50%;
}

.strength-meter-bar.good {
    background-color: #3b82f6;
    width: 75%;
}

.strength-meter-bar.strong {
    background-color: #10b981;
    width: 100%;
}

.password-suggestions {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 2px;
    margin-bottom: 2px;
    line-height: 1.2;
}

/* Input alanı ve gösterge için stiller */
.input-with-feedback {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: block;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    z-index: 10;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #e6edf3;
}

.input-with-feedback input {
    padding-right: 40px; /* Gösterge için sağ tarafta boşluk bırak */
}

.input-indicator {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    font-size: 16px;
    display: none;
}

.input-indicator.valid {
    color: #10b981;
}

.input-indicator.invalid {
    color: #ef4444;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 520px) {
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #0d9669;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #9ca3af;
}

.btn-link {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.75rem 1rem;
}

.btn-link:hover {
    color: #0ea271;
    text-decoration: underline;
}

/* Modal Stilleri */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #111827;
    border-radius: 8px;
    border: 1px solid #1f2937;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

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

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #1f2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #e6edf3;
    font-size: 1.2rem;
}

.close-modal {
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #e6edf3;
}

.modal-body {
    padding: 1.5rem;
    color: #e6edf3;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #1f2937;
    display: flex;
    justify-content: flex-end;
}

.form-footer a:hover {
    text-decoration: underline;
}

.social-login {
    margin-top: 20px;
    text-align: center;
}

.social-login-divider {
    display: flex;
    align-items: center;
    margin: 15px 0;
    color: #9ca3af;
}

.social-login-divider::before,
.social-login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #374151;
}

.social-login-divider span {
    margin: 0 10px;
    font-size: 14px;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    padding: 10px 15px;
    background-color: #ffffff;
    color: #202124;
    border: 1px solid #dadce0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-google:hover {
    background-color: #f8f9fa;
}

.google-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.social-login-top {
    margin-bottom: 2rem;
    text-align: center;
    padding: 1.5rem;
    background-color: #1a202c;
    border-radius: 8px;
    border: 1px solid #2d3748;
}



.social-login-divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.social-login-top .social-login-divider {
    margin-top: 1.5rem;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #ffffff;
    color: #333333;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
    margin: 0 auto;
    max-width: 300px;
}

@media (max-width: 600px) {
    .register-container {
        padding: 10px;
    }
    
    .register-body {
        padding: 1.5rem;
    }
}
.flash-message {
    font-weight: bold;
    color: #fff !important;
    background: linear-gradient(90deg, #e53935 0%, #e35d5b 100%);
    border: 2px solid #b71c1c;
    box-shadow: 0 4px 12px rgba(229,57,53,0.2);
    border-radius: 6px;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    padding: 14px 20px;
    margin-bottom: 18px;
    transition: box-shadow 0.3s;
    text-align: center;
}
.flash-message.alert-success {
    background: linear-gradient(90deg, #43a047 0%, #66bb6a 100%);
    border-color: #1b5e20;
}
.flash-message.alert-warning {
    background: linear-gradient(90deg, #ffa000 0%, #ffc107 100%);
    border-color: #ff6f00;
    color: #222 !important;
}
.flash-message.alert-info {
    background: linear-gradient(90deg, #1976d2 0%, #64b5f6 100%);
    border-color: #0d47a1;
}

.btn-primary {
    background-color: #10b981;
    color: #ffffff;
    border: 1px solid #10b981;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 200px;
}

.btn-primary:hover {
    background-color: #059669;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary:disabled {
    background-color: #6b7280;
    border-color: #6b7280;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.btn-primary:disabled:hover {
    background-color: #6b7280;
    border-color: #6b7280;
    transform: none;
    box-shadow: none;
}

@media (max-width: 1200px) {
    .fb-logo {
        margin-left: 60px !important;
        width: 600px;
    }
}
@media (max-width: 850px) {
    .fb-logo {
        margin-left: 0 !important;
        width: 350px;
    }
}
@media (max-width: 600px) {
    .fb-logo {
        margin-left: 0 !important;
        width: 180px;
    }
}