/* Üyelik formu için ortak stiller */
.auth-container {
    width: 360px;
    margin: 35px auto 80px;
    padding: 35px;
    background: var(--bg-primary, #ffffff);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.auth-container h2 {
    margin-bottom: 30px;
    color: var(--text-primary);
    text-align: center;
    font-size: 24px;
    font-weight: 600;
}

.auth-container form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
    margin: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary, #666);
    font-size: 14px;
    font-weight: 500;
}

/* Zorunlu alan işaretleyicisi */
.form-group label[for] input:required + label::after,
.form-group:has(input:required) label::after {
    content: "*";
    color: #dc3545;
    margin-left: 4px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #28a745;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: transparent;
}

/* Odaklanma durumunda stil */
.form-group input:focus {
    border-color: #ddd;
    background-color: rgba(40, 167, 69, 0.1);
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

/* Hata durumu */
.form-group input[style*="border-color: rgb(220, 53, 69)"] {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

/* Hata tooltip'ini tamamen gizle */
.error-tooltip {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    position: absolute;
    pointer-events: none;
}



/* Boş alan kontrolü - sadece etkileşimden sonra */
.form-group input:not(:placeholder-shown):invalid:not(:focus):not(:placeholder-shown) {
    border-color: inherit;
    background-color: transparent;
}

.form-group input:not(:placeholder-shown):invalid:not(:focus):not(:placeholder-shown) + .error-tooltip {
    display: none;
}

/* Zorunlu alanlar için özel stil */
.form-group input:required {
    border-color: #28a745;
    background-color: transparent;
}

/* Geçerli giriş durumu */
.form-group input:required:valid:not(:placeholder-shown) {
    border-color: var(--border-color) !important;
    background-image: none !important;
    padding-right: 12px !important;
}

/* Hata durumu için shake animasyonu - sadece etkileşimden sonra */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-group input:not(:placeholder-shown):invalid:not(:focus):not(:placeholder-shown) {
    animation: shake 0.3s ease;
}

/* Buton stilleri */
.auth-container button {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 5px;
    margin-bottom: 5px;
}

.auth-container button:hover {
    background-color: #45a049;
}

/* Aktif olmayan buton stillerini kaldır */
.auth-container button:disabled {
    background-color: #4CAF50 !important;
    opacity: 1 !important;
    cursor: pointer !important;
}

.auth-container button:disabled:hover {
    background-color: #45a049 !important;
}

.auth-container p {
    margin: 15px 0 0 0;
    padding: 0;
    text-align: center;
    color: var(--text-secondary, #666);
    font-size: 14px;
    line-height: 1;
}

.auth-container a {
    color: #629660;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-container a:hover {
    color: #548551;
}

/* Hata ve başarı mesajları */
.error-message, .success-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.error-message {
    background-color: #dc3545;
    color: white;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    animation: fadeInDown 0.5s ease;
    font-size: 14px;
}

.success-message {
    background-color: #f0fff0;
    color: #28a745;
    border: 1px solid #c3e6cb;
}

/* Karanlık mod */
body.dark-mode .auth-container {
    background: #1a1a1a;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

body.dark-mode .form-group label {
    color: #999;
}

body.dark-mode .form-group input {
    background-color: rgba(40, 167, 69, 0.01);
    border-color: #28a745;
    color: #fff;
}

body.dark-mode .form-group input:focus {
    background-color: rgba(40, 167, 69, 0.05);
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}

body.dark-mode .auth-container p {
    color: #999;
}

body.dark-mode .auth-container a {
    color: #7ad975;
}

body.dark-mode .auth-container a:hover {
    color: #8bec86;
}

body.dark-mode .auth-container button:hover {
    background: #7ad975;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .auth-container {
        width: 90%;
        max-width: 360px;
        margin: 40px auto;
        padding: 25px;
    }
}

/* Şifre gereksinimleri stilleri */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
}

.password-requirements {
    margin-top: 8px;
    padding: 10px;
    background-color: rgba(98, 150, 96, 0.05);
    border-radius: 6px;
    font-size: 12px;
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    transition: all 0.3s ease;
}

.form-group input[type="password"]:focus ~ .password-requirements:not(.requirements-met),
.form-group input[type="password"]:not(:placeholder-shown) ~ .password-requirements:not(.requirements-met) {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
    pointer-events: auto;
    margin-bottom: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.password-requirements.requirements-met {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    pointer-events: none;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.requirement {
    margin: 4px 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.requirement::before {
    content: "✕";
    color: #dc3545;
    font-weight: bold;
    opacity: 1;
    transition: none;
}

.requirement.valid {
    color: #28a745;
}

.requirement.valid::before {
    content: "✓";
    color: #28a745;
    opacity: 0;
    animation: none;
}

.requirement.valid::before {
    opacity: 1;
    transition: opacity 0.3s ease;
}

body.dark-mode .password-requirements {
    background-color: rgba(98, 150, 96, 0.1);
}

body.dark-mode .requirement {
    color: #999;
}

body.dark-mode .requirement.valid {
    color: #7ad975;
}

/* Şifre Eşleşme Mesajı */
.password-match-message {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #dc3545;
    transition: color 0.3s ease;
}

.password-match-message.valid {
    color: #28a745;
}

body.dark-mode .password-match-message {
    opacity: 0.9;
}

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

.recaptcha-container {
    margin: 5px 0;
    display: flex;
    justify-content: center;
}

.recaptcha-container > div {
    transform: scale(0.9);
    transform-origin: center;
}

@media (max-width: 768px) {
    .recaptcha-container > div {
        transform: scale(0.85);
    }
}

.login-form input:focus {
    border-color: var(--primary-color) !important;
    background-image: none !important;
}

.forgot-password {
    margin: 0 0 2px 0;
    text-align: center;
    padding: 0;
}

.forgot-password a {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 1px;
    display: inline-block;
}

.forgot-password a:hover {
    color: #629660;
}

.forgot-password a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background-color: #629660;
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}

.forgot-password a:hover::after {
    width: 100%;
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    .forgot-password a {
        color: #a0a0a0;
    }
    
    .forgot-password a:hover {
        color: #629660;
    }
    
    .forgot-password a::after {
        background-color: #629660;
    }
}

body.dark-mode .forgot-password a {
    color: #7ad975;
}

body.dark-mode .forgot-password a:hover {
    color: #8bec86;
}

/* E-posta alanı için özel stilleri kaldır */
.form-group input[type="email"] {
    border-color: #28a745;
    background-color: transparent;
}

.form-group input[type="email"]:focus {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.name-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.name-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 8px 0;
}

.remember-me label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary, #666);
    transition: color 0.3s ease;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #28a745;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background-color: transparent;
}

.remember-me input[type="checkbox"]:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.remember-me input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.remember-me input[type="checkbox"]:hover {
    border-color: #45a049;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.remember-me input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}

/* Dark mode styles */
body.dark-mode .remember-me label {
    color: #999;
}

body.dark-mode .remember-me input[type="checkbox"] {
    border-color: #7ad975;
}

body.dark-mode .remember-me input[type="checkbox"]:checked {
    background-color: #7ad975;
    border-color: #7ad975;
}

body.dark-mode .remember-me input[type="checkbox"]:hover {
    border-color: #8bec86;
    box-shadow: 0 0 0 2px rgba(122, 217, 117, 0.2);
}

body.dark-mode .remember-me input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(122, 217, 117, 0.3);
}

/* Google ile Giriş Butonu Stilleri */
.social-login-divider {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    margin-bottom: 20px;
    gap: 15px;
}

.social-login-divider::before,
.social-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
}

.social-login-divider span {
    color: #888;
    font-size: 13px;
    font-weight: 500;
    text-transform: lowercase;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    margin-top: 0px;
    margin-bottom: 24px;
    background-color: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #3c4043;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.google-login-btn:hover {
    background-color: #f8f9fa;
    border-color: #c6c6c6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    color: #3c4043;
}

.google-login-btn:active {
    background-color: #f1f3f4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.google-login-btn .google-icon {
    flex-shrink: 0;
}

/* Dark Mode - Google Button */
body.dark-mode .social-login-divider::before,
body.dark-mode .social-login-divider::after {
    background: linear-gradient(to right, transparent, #444, transparent);
}

body.dark-mode .social-login-divider span {
    color: #999;
}

body.dark-mode .google-login-btn {
    background-color: #2d2d2d;
    border-color: #444;
    color: #e8eaed;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

body.dark-mode .google-login-btn:hover {
    background-color: #3d3d3d;
    border-color: #555;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    color: #fff;
}

body.dark-mode .google-login-btn:active {
    background-color: #353535;
}

/* Mobil uyumluluk - Google Button */
@media (max-width: 768px) {
    .google-login-btn {
        padding: 11px 14px;
        font-size: 14px;
    }
    
    .social-login-divider {
        margin: 0;
    }
} 