@import "colors.css";

/* Bootstrap utility class'ları için - Responsive overflow (Bootstrap'te yok, custom class'lar) */
.overflow-y-auto-md-hidden {
    overflow-y: auto;
    overflow-x: hidden;
}

.min-vh-100-md-vh-100 {
    min-height: 100vh;
}

.overflow-visible-md-hidden {
    overflow: visible;
}

/* Desktop'ta (md ve üzeri) */
@media (min-width: 768px) {
    .overflow-y-auto-md-hidden {
        overflow: hidden;
    }
    
    .min-vh-100-md-vh-100 {
        height: 100vh;
        min-height: auto;
    }
    
    .overflow-visible-md-hidden {
        overflow: hidden;
    }
}

.register-title-color {
    color: #7F5539;
}

.register-heading {
    font-size: 0.85rem;
}

/* Başlık boyutu (mobil/tablet h2 kurallarını ezer) */
.register-form-wrapper h2.register-heading {
    font-size: 1.5rem !important;
}

.register-form-wrapper {
    max-width: 560px;
    margin-top: -2rem;
}

.birth-place-dropdown {
    z-index: 1050;
    max-height: 220px;
}

.password-hint-text {
    font-size: 0.7rem;
}

/* Formun çok genişlemesini engellemek için kapsayıcı */
.login-wrapper {
    width: 100%;
    max-width: 500px;
}

.login-logo-img {
    max-height: 88px;
    width: auto;
}

.register-form-wrapper .login-logo-img {
    max-height: 52px;
}

.login-wrapper .form-label,
.login-wrapper .login-heading-color {
    font-size: 0.95rem;
}

.login-wrapper .h4.fs-5 {
    font-size: 1.15rem;
}

.login-wrapper .form-control-lg,
.login-wrapper .login-input {
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .login-logo-img {
        max-height: 115px;
    }

    .login-wrapper {
        max-width: 560px;
        padding: 1rem 1.5rem !important;
    }

    .login-wrapper .form-label,
    .login-wrapper .login-heading-color {
        font-size: 1.05rem;
    }

    .login-wrapper .h4.fs-5 {
        font-size: 1.25rem !important;
    }

    .login-wrapper .form-control-lg,
    .login-wrapper .login-input {
        font-size: 1.05rem;
        min-height: 48px;
    }

    .login-wrapper .btn-login {
        padding: 0.65rem 1rem;
        font-size: 1.05rem;
    }

    .login-wrapper .signup-text,
    .login-wrapper .small {
        font-size: 0.95rem;
    }
}

@media (min-width: 992px) {
    .login-wrapper {
        max-width: 500px;
    }
}

.login-mobile-gif {
    max-width: 150px;
}

.login-heading-color {
    color: #7F5539;
}

.login-input {
    border: 1px solid var(--astro-light-wood, #d1d1d1);
    border-radius: 6px;
    background-color: #fff;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    min-height: 44px;
    height: auto;
}

.login-input:focus {
    border-color: var(--astro-deep-teal, #0F5A4F);
    box-shadow: 0 0 0 3px rgba(15, 90, 79, 0.08);
    outline: none;
}

.login-input::placeholder {
    font-size: 0.85rem;
    color: #adb5bd;
}

/* Şifre göster/gizle butonu */
.password-input-wrapper {
    position: relative;
}
.password-input-wrapper .login-input {
    padding-right: 2.75rem;
}
.btn-password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.25rem 0.5rem;
    border: none;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    border-radius: 4px;
    line-height: 1;
}
.btn-password-toggle:hover {
    color: var(--astro-deep-teal, #0F5A4F);
}
.btn-password-toggle:focus {
    outline: none;
}

.form-label {
    font-weight: 500;
    color: #4a4a4a;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

/* Standard form-check styling */
.form-check {
    margin-bottom: 0;
}

.form-check-input {
    margin-top: 0.25rem;
    min-width: 18px;
    min-height: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-input:focus {
    border-color: var(--astro-deep-teal, #0F5A4F);
    box-shadow: 0 0 0 3px rgba(15, 90, 79, 0.08);
}

.form-check-label {
    font-size: 0.875rem;
    color: #495057;
    cursor: pointer;
    line-height: 1.5;
    margin-left: 0.5rem;
}

.text-danger.small {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

.forgot-password-link {
    color: var(--astro-deep-teal, #0F5A4F);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: var(--astro-dark-teal, #0b423a);
    text-decoration: underline;
}

.btn-login {
    background-color: #0F5A4F;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    min-height: 44px; /* Minimum tap target for mobile */
    height: auto;
}

.btn-login:hover {
    background-color: #0b423a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 90, 79, 0.3);
    color: white;
}

.btn-login:focus,
.btn-login:active,
.btn-login:focus:active {
    background-color: #0F5A4F !important;
    border-color: #0F5A4F !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(15, 90, 79, 0.2) !important;
}

.btn-login:disabled,
.btn-login.disabled {
    background-color: #0F5A4F !important;
    border-color: #0F5A4F !important;
    color: #fff !important;
    opacity: 1 !important;
}

.signup-text {
    color: #7F5539;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.signup-link {
    color: var(--astro-deep-teal, #0F5A4F);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link:hover {
    text-decoration: underline;
    color: var(--astro-dark-teal, #0b423a);
}

/* Register Page Specific Styles */
.register-title {
    color: #7F5539;
}

/* Birth Place Dropdown */
.birth-place-dropdown {
    z-index: 1050;
    max-height: 220px;
    overflow: auto;
    top: 100%;
    margin-top: 4px;
}

/* Form Section Separators */
.form-section {
    position: relative;
}

/* Mobil cihazlarda dynamic viewport height için */
@media (max-width: 767.98px) {
    .container-fluid.vh-100 {
        height: 100dvh !important; /* Mobil toolbar'ları hesaba katar */
    }
    
    .row.h-100 {
        height: 100dvh !important;
    }
    
    /* Mobil için başlık boyutu */
    .login-form-section h2 {
        font-size: 1.5rem;
    }
    
    /* Mobil için görsel boyutu */
    .login-form-section .astrological-circle img {
        max-width: 150px !important;
    }
    
    /* Register sayfası için başlık boyutu */
    .register-form-wrapper h2 {
        font-size: 1.5rem;
    }
}

/* Tablet ve üzeri için başlık boyutu */
@media (min-width: 768px) {
    .login-form-section h2 {
        font-size: 2rem;
    }
}

.login-form-section {
    -webkit-overflow-scrolling: touch;
}

.login-input {
    font-size: 1rem; /* Prevent zoom on iOS */
    padding: 0.625rem 0.875rem;
}

.form-label {
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
}

.form-section {
    margin-bottom: 0.75rem;
}

.form-section:not(:last-child)::after {
    bottom: -0.5rem;
}

.row.g-2 > [class*="col-"] {
    margin-bottom: 0.75rem;
}

.row.g-2 > [class*="col-"]:last-child {
    margin-bottom: 0;
}

/* Bootstrap utility class'ları kullanıldığı için özel spacing gerekmiyor */

/* Form ve Graphic Section - Bootstrap class'ları ile kontrol edilecek */
.login-graphic-section {
    height: 100vh;
    overflow: hidden;
}

/* Bootstrap utility class'ları kullanıldığı için responsive media query'ler gerekmiyor */
/* Tüm responsive ayarlamalar Bootstrap class'ları ile yapılıyor (p-2 p-sm-3 p-md-5, mb-2 mb-sm-3 mb-md-4, vs.) */

/* Register sayfası için - Bootstrap utility class'ları kullanıldığı için minimal CSS */
/* Padding ve margin'ler Bootstrap class'ları ile yapılıyor (px-2 px-sm-3 px-md-5, mb-2 mb-sm-3 mb-md-4) */

/* Mobil için astrological circle boyutu */
@media (max-width: 375px) {
    .astrological-circle-mobile {
        width: 120px !important;
        height: 120px !important;
    }
}

@media (min-width: 376px) and (max-width: 480px) {
    .astrological-circle-mobile {
        width: 150px !important;
        height: 150px !important;
    }
}

/* Tablet ve Desktop için (md ve üzeri) - Bootstrap utility class'ları kullanılıyor */
/* align-items-md-center ile mobilde flex-start, desktop'ta center oluyor */
@media (min-width: 768px) {
    .login-form-section {
        overflow: hidden; /* Desktop'ta scroll yok */
    }
    
    /* Register sayfası için başlık boyutu */
    .register-form-wrapper h2 {
        font-size: 2rem;
    }
    
    .login-wrapper {
        padding: 0; /* Bootstrap px-md-5 ile override edilecek */
    }
    
    .login-input {
        font-size: 0.9rem; /* Desktop için daha küçük */
        padding: 0.5rem 0.75rem;
    }
    
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
    }
    
    .form-section {
        margin-bottom: 1rem;
    }
    
    .form-section:not(:last-child)::after {
        bottom: -1rem;
    }
    
    .row.g-2 > [class*="col-"] {
        margin-bottom: 0; /* Desktop'ta margin yok */
    }
    
    /* Terms - Tablet ve Desktop için override */
    .terms-agreement-box {
        padding: 1.25rem 1.5rem;
    }
    
    .terms-label {
        font-size: 0.875rem;
    }
    
    .terms-text {
        display: inline-block;
        line-height: 1.6;
    }
    
    .terms-link {
        display: inline-flex;
        margin: 0;
    }
    
    .terms-checkbox {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .btn-google,
    .btn-facebook {
        font-size: 0.9rem;
        padding: 0.65rem 1rem;
    }
    
    .btn-google svg,
    .btn-facebook svg {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }
    
    /* Terms custom - Tablet ve Desktop için override */
    .terms-agreement-card {
        padding: 1rem 1.25rem;
    }
    
    .terms-label-custom {
        font-size: 0.75rem;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        line-height: 1.3;
    }
    
    .terms-text-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
        line-height: 1.3;
        max-width: 100%;
    }
    
    .terms-link-custom {
        font-size: 0.75rem;
    }
    
    .terms-separator-custom {
        font-size: 0.75rem;
    }
    
    .terms-accept-custom {
        font-size: 0.75rem;
    }
    
    .terms-icon {
        font-size: 1.1rem;
    }
}

/* Google Login Button */
.btn-google {
    background-color: #ffffff;
    color: #3c4043;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #dadce0;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    height: 42px;
}

.btn-google:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
    color: #3c4043;
    transform: translateY(-1px);
}

.btn-google:active {
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    transform: translateY(0);
}

/* Facebook Login Button */
.btn-facebook {
    background-color: #1877F2;
    color: #ffffff;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(24, 119, 242, 0.3);
    height: 42px;
}

.btn-facebook:hover {
    background-color: #166fe5;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(24, 119, 242, 0.4);
    transform: translateY(-1px);
}

.btn-facebook:active {
    background-color: #1460d1;
    box-shadow: 0 2px 4px rgba(24, 119, 242, 0.3);
    transform: translateY(0);
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

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

.divider-text {
    position: relative;
    background-color: #ffffff;
    padding: 0 1rem;
    color: #5f6368;
    font-size: 0.875rem;
}

/* ============================================
   SAĞ TARAF (GRAFİK)
   ============================================ */
.login-graphic-section {
    background-color: #DCE0D9 !important; 
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Daire Kapsayıcı */
.astrological-circle {
    width: 70%; /* Ekranın %70'i kadar genişlik */
    max-width: 500px; /* Maksimum büyüklük */
    aspect-ratio: 1 / 1; /* Tam kare (daire) olması için */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0; /* Resim tam otursun diye */
}


.astrological-gif {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi daireye sığdır ve kırp */
    display: block;
}

/* Mobil GIF Kapsayıcı */
.astrological-circle-mobile {
    width: 200px;
    height: 200px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.astrological-gif-mobile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   TERMS AGREEMENT SECTION (PROFESSIONAL DESIGN)
   ============================================ */
.terms-agreement-container {
    margin: 1.5rem 0;
}

.terms-agreement-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.terms-agreement-box:hover {
    border-color: #0F5A4F;
    box-shadow: 0 4px 12px rgba(15, 90, 79, 0.1);
}

.terms-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    transition: all 0.3s ease;
}

.terms-checkbox-wrapper.shake-error {
    animation: shake 0.6s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

.terms-checkbox {
    margin-top: 0.125rem;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    border: 2px solid #7F5539;
    cursor: pointer;
    transition: all 0.2s ease;
}

.terms-checkbox:checked {
    background-color: #0F5A4F;
    border-color: #0F5A4F;
}

.terms-checkbox:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.terms-checkbox:not(:disabled):hover {
    border-color: #0F5A4F;
    transform: scale(1.05);
}

.terms-label {
    flex: 1;
    line-height: 1.6;
    color: #495057;
    font-size: 0.75rem;
    font-weight: 400;
    cursor: pointer;
    margin: 0;
}

.terms-text {
    display: inline-block;
    line-height: 1.6;
}

.terms-link {
    color: #0F5A4F;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    border-bottom: 1.5px solid transparent;
    padding-bottom: 1px;
    font-size: 0.75rem;
}

.terms-link:hover {
    color: #0b423a;
    border-bottom-color: #0F5A4F;
    transform: translateY(-1px);
}

.terms-link i {
    font-size: 0.95rem;
    opacity: 0.8;
}

.terms-separator {
    color: #6c757d;
    margin: 0 0.25rem;
    font-weight: 400;
}

.terms-accept-text {
    color: #495057;
    font-weight: 500;
}

/* Terms - Mobil için varsayılan stiller */
.terms-agreement-box {
    padding: 0.875rem 1rem;
}

.terms-label {
    font-size: 0.65rem;
}

.terms-text {
    display: block;
    line-height: 1.8;
}

.terms-separator {
    display: inline;
    margin: 0 0.25rem;
}

.terms-link {
    display: inline-flex;
    margin: 0.25rem 0;
}

.terms-checkbox {
    width: 1.1rem;
    height: 1.1rem;
}

/* Social login buttons - Mobil için varsayılan */
.btn-google,
.btn-facebook {
    font-size: 0.8rem;
    padding: 0.6rem 0.75rem;
}

.btn-google svg,
.btn-facebook svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}


        /* Terms Agreement Card - Modern & Sweet Design */
        .terms-agreement-card {
            background: linear-gradient(135deg, #fff5f0 0%, #fff9f5 50%, #f0f8ff 100%);
            border: 2px solid #ffe5d4;
            border-radius: 16px;
            padding: 1rem 1.25rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 8px rgba(127, 85, 57, 0.08);
            position: relative;
            overflow: hidden;
        }

   
        .terms-checkbox-wrapper {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            margin: 0;
        }

        .terms-checkbox-custom {
            width: 20px;
            height: 20px;
            margin-top: 0.15rem;
            flex-shrink: 0;
            border: 2px solid #0F5A4F;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
        }

        .terms-checkbox-custom:checked {
            background-color: #0F5A4F;
            border-color: #0F5A4F;
        }

        .terms-checkbox-custom:checked::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 14px;
            font-weight: bold;
        }

        .terms-checkbox-custom:disabled {
            opacity: 0.2;
            cursor: not-allowed;
        }

        .terms-checkbox-custom:not(:disabled):hover {
            border-color: #0F5A4F;
            transform: scale(1.1);
        }

        .terms-label-custom {
            flex: 1;
            line-height: 1.3;
            font-size: 0.7rem;
            color: #495057;
            cursor: pointer;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 0.4rem;
            flex-wrap: wrap;
        }

        .terms-icon-wrapper {
            display: flex;
            align-items: center;
            margin-top: 0.1rem;
        }

        .terms-icon {
            color: #0F5A4F;
            font-size: 1.1rem;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        .terms-text-wrapper {
            flex: 1;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.2rem;
            line-height: 1.3;
            max-width: 100%;
        }

        .terms-link-custom {
            color: #06392c;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.4s ease;
            border-bottom: 2px solid transparent;
            padding-bottom: 1px;
            position: relative;
            white-space: nowrap;
            font-size: 0.7rem;
        }

        .terms-link-custom.terms-link-read {
            color: #0F5A4F;
            filter: none;
            opacity: 1;
            border-bottom-color: #0F5A4F;
        }

        .terms-separator-custom {
            color: #6c757d;
            margin: 0 0.15rem;
            font-weight: 400;
            white-space: nowrap;
            font-size: 0.7rem;
        }

        .terms-accept-custom {
            color: #495057;
            font-weight: 500;
            white-space: nowrap;
            font-size: 0.7rem;
        }

        .terms-heart {
            color: #ff6b9d;
            font-size: 0.9rem;
            margin-left: 0.25rem;
            animation: heartbeat 1.5s ease-in-out infinite;
        }

        @keyframes heartbeat {
            0%, 100% { transform: scale(1); }
            25% { transform: scale(1.1); }
            50% { transform: scale(1); }
        }

        /* Terms custom - Mobil için varsayılan stiller */
        .terms-agreement-card {
            padding: 0.875rem 1rem;
        }

        .terms-label-custom {
            font-size: 0.7rem;
            flex-direction: row;
            gap: 0.4rem;
            align-items: center;
        }

        .terms-text-wrapper {
            flex-direction: row;
            align-items: center;
            gap: 0.2rem;
            line-height: 1.3;
            max-width: 100%;
        }

        .terms-icon {
            font-size: 0.9rem;
        }
        
/* Helper text styling */
.form-text.text-muted {
    color: #6c757d;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    line-height: 1.4;
}
        .modal-content {
            border-radius: 12px;
        }

        .btn-primary {
            background-color: #7F5539;
            border-color: #7F5539;
        }
        .btn-primary:hover {
            background-color: #5a3d2a;
            border-color: #5a3d2a;
        }