/* css/auth.css */
/* Kimlik doğrulama bölümü stilleri (login/register) */

.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

/* Aktif olduğunda görünür hale gelsin */
.auth-section.active-visible {
    opacity: 1;
    pointer-events: auto;
}

.auth-main-container {
    display: flex;
    max-width: 1000px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid var(--glass-border-color);
    box-shadow: 0 8px 32px 0 var(--glass-shadow-color);
    position: relative;
    overflow: hidden;
}

.auth-visual-container {
    position: relative;
    z-index: 1;
}

.auth-visual {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.auth-box-container {
    flex: 1.2;
    display: flex;
    justify-content: center;
    z-index: 2;
	margin-left:-13px;
}

.auth-box {
    background-color: var(--glass-bg-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 var(--glass-shadow-color);
    padding: 30px;
    width: 100%;
    width: 350px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main);
	justify-content: center;
}

body.light .auth-box {
    background-color: var(--light-glass-bg-color);
    border: 1px solid var(--light-glass-border-color);
    box-shadow: 0 8px 32px 0 var(--light-glass-shadow-color);
    color: var(--text-main);
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
	margin-bottom: 10px;
}

.auth-header h1 {
    font-size: 1.5rem;
    margin: 0;
    text-align: center;
}

.auth-form {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

.auth-form.active {
    display: flex;
}

.register-step {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}
.register-step.active {
    display: flex;
}
.auth-form h2 {
    font-size: 1.3em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-main);
}
.auth-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.auth-form .input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
	align-items: flex-start;
}
.auth-form label {
    font-size: 0.9em;
    color: var(--text-main);
    display: flex;
    flex-wrap: nowrap;
}
.auth-form p {
    text-align: center;
    margin: 50px 0 0 0;
    font-size: 0.9em;
    color: var(--text-main);
    line-height: 0.2;	
}
.auth-form p a {
    color: #a678f2;
    text-decoration: none;
    font-weight: bold;
}
.auth-form p a:hover {
    text-decoration: underline;
}

/* YENİ: Form butonu konteyneri */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.form-actions .button {
    margin-top: 0;
    flex: 1;
}

/* Resend button specific tweak to visually match primary action in this form */
.resend-button {
    background-color: var(--ui-accent);
    color: var(--ui-accent-contrast);
    padding: 8px 12px;
    min-width: 120px;
    opacity: 0;
}
.resend-button.visible {
    opacity: 1;
}

/* Dil Seçici Konteyneri için Stil */
.language-selector-container {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255,255,255,0.1);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.language-selector-container label {
    font-size: 0.9em;
    color: var(--text-main);
    margin-bottom: 8px;
    display: block;
}

.auth-box .language-select {
    width: auto;
    max-width: 150px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

body.light .language-selector-container {
    border-top: 1px dashed rgba(0,0,0,0.1);
}
#forgotEmail {
    color: #000000 !important;
}
#forgotEmail::placeholder {
    color: #000000 !important;
}
#resetPasswordPageContainer {
    display: flex;
    justify-content: center;
    align-items: center;
}
#resetPasswordPageContainer .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}
.avatar-upload-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.clickable-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f7c843;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.clickable-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}
@media (max-width: 768px) {
    .auth-main-container {
        flex-direction: column;
        border-radius: 15px;
        overflow: hidden;
    }
    .auth-visual-container {
        display: none;
        width: 100%;
        height: 200px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    .auth-box-container {
        position: static;
        width: 100%;
        transform: none;
        padding: 0px;
	    margin-left:0px;
    }
    .auth-box {
        max-width: 100%;
        height: auto;
		width:350px;
    }
}
#registerForm .register-step {
    display: none;
}
#registerForm .register-step.active {
    display: flex;
}
#loginVerificationStep.active {
    display: flex !important;
}

/* Checkbox hizalama sorunu için eklenen stil */
#loginVerificationForm .input-group {
    display: flex;
    align-items: center;
}

#trustDeviceCheckbox {
    margin-right: 8px; /* Checkbox ve etiket arasındaki boşluk */
}

/* Şifre göster/gizle butonu stilleri */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
	width:100%;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.password-toggle-btn:hover {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.password-toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-color);
}

.password-toggle-btn svg {
    width: 16px;
    height: 16px;
}

/* Şifre alanları başlangıçta gizli */
#passwordFields,
#passwordConfirmFields {
    display: none;
}

/* Şifre alanları görünür olduğunda */
#passwordFields.visible,
#passwordConfirmFields.visible {
    display: block;
}
