/* public/css/auth-modal.css */

/* Modal Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Modal Container */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 12px; /* Daha yuvarlak köşeler */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); /* Gölge efekti */
    z-index: 1000;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

/* Modal İçerik */
.modal-content {
    position: relative;
    padding: 0; /* İç padding'i sıfırla, formlara bırak */
}

/* Kapatma Butonu */
.close-button {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.close-button:hover {
    color: #007782;
}

/* Logo */
.logo {
    text-align: center;
    background-color: #007782;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.logo-text {
    font-family: "Lobster", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 36px;
    color: #fff;
    display: inline-block;
}

/* Form Kapsayıcılar */
.form-container {
    display: none;
}

.form-container.active {
    display: block;
}

/* Form Grubu */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    border-color: #007782;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 119, 130, 0.2);
}

/* Telefon Girişi */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 10px;
    background-color: #f8f9fa;
    margin-bottom: 12px;
}

.flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
}

.phone-code {
    font-weight: bold;
    color: #333;
}

.phone-input-wrapper input[type="tel"] {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 16px;
}

/* Butonlar */
.btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn.primary {
    background: #007782;
    color: #fff;
}

.btn.primary:hover {
    background: #005e66;
}

/* Sosyal Giriş Butonları */
.sosyal-girisler {
    margin-top: 20px;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    width: 100%;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.3s, background-color 0.3s;
}

.social-button:hover {
    border-color: #007782;
    background-color: #f1f8f8;
}

.social-button.google {
    border: 1px solid #4285f4;
    color: #4285f4;
}

.social-button.google img {
    width: 20px;
    height: 20px;
}

.social-button.phone i {
    color: #007782;
}

.social-button.email i {
    color: #007782;
}

/* Checkbox */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #007782;
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    background-color: white;
}

input[type="checkbox"]:checked {
    background-color: #007782;
    border-color: #007782;
}

input[type="checkbox"]:checked::after {
    content: "\u2714";
    color: white;
    position: absolute;
    top: -1px;
    left: 3px;
    font-size: 14px;
    font-weight: bold;
}

/* Metin Merkezleme */
.text-center {
    text-align: center;
}

.text-center a {
    color: #007782;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.text-center a:hover {
    color: #005e66;
}

/* Timer */
#otp-timer {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #007782;
}

#otp-timer.expired {
    color: #ff0000;
}

.error-text {
    color: red;
    font-size: 0.9rem;
    display: block;
    margin-top: 5px;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

/* Medya Sorguları */
@media (max-width: 480px) {
    .modal {
        max-width: 90%;
        padding: 15px;
    }

    .logo-text {
        font-size: 28px;
    }

    .form-group input {
        font-size: 14px;
    }

    .btn {
        font-size: 15px;
    }

    .social-button {
        font-size: 14px;
        padding: 8px;
    }
}