/* Dentistanbul Logo Renkleri */
:root {
    --primary-color: #0068b3; /* Dentistanbul ana mavi rengi */
    --primary-dark: #004d85;  /* Koyu mavi */
    --primary-light: #3a96d7; /* Açık mavi */
    --secondary-color: #00a651; /* Yeşil vurgu rengi */
    --accent-color: #f5821f;  /* Turuncu vurgu rengi */
    --text-color: #344154;    /* Koyu gri metin rengi */
    --border-color: #e0e0e0;  /* Açık gri sınır rengi */
    
    /* Animasyon hızları */
    --animation-fast: 0.2s;
    --animation-normal: 0.3s;
    --animation-slow: 0.5s;
    
    /* Geçiş eğrileri */
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.27, 1.55);
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
}

*{
    transition: 250ms all;
}

html, body {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: block;
    overflow-x: hidden;
    position: relative;
    background-color: var(--primary-dark);
}

/* Arka plan resimleri için konteynır */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    filter: blur(5px);
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity var(--animation-slow) var(--ease-in-out);
    will-change: opacity;
}

.background-image.active {
    opacity: 0.7;
    animation: subtleZoom 20s infinite alternate var(--ease-in-out);
}

@keyframes subtleZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

.background-image:nth-child(1) {
    background-image: url('assets/img/background/login/1.jpg');
}

.background-image:nth-child(2) {
    background-image: url('assets/img/background/login/2.jpg');
}

/* Filigram katmanı */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 77, 133, 0.5); /* primary-dark renk */
    z-index: -1;
    pointer-events: none;
}

/* Bulanıklaştırma efekti için ek pseudo-element */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: -1;
    pointer-events: none;
}

/* Arka plan için fallback */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0f3058;
    z-index: -2;
}

main {
    width: 100%;
    height: calc(100vh - 30px);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.form-container {
    width: 100%;
    max-width: 450px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 40px;
    position: relative;
    z-index: 1;
    animation: fadeInUp var(--animation-normal) var(--ease-out) forwards;
}

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

.logo {
    text-align: center;
    margin-bottom: 20px;
}

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

.form-wrapper {
    position: relative;
}

.form {
    width: 100%;
}

/* Giriş formu için özel stil */
#login h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.login-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 15px;
}

#login .input-group {
    position: relative;
    margin-bottom: 20px;
}

#login .input-group label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    font-size: 16px;
    z-index: 2;
}

.input-with-icon input {
    padding-left: 45px !important;
    width: 100%;
    box-sizing: border-box;
}

.input-with-icon input {
    padding: 12px 15px 12px 45px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 15px;
    transition: border-color 0.3s;
}

.input-with-icon input:focus {
    transition: border-color var(--animation-normal), box-shadow var(--animation-normal);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 104, 179, 0.1);
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    z-index: 2;
    transition: color 0.3s;
}

.toggle-password:focus {
    outline: none;
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* Beni hatırla ve şifremi unuttum tek satır düzeni */
.remember-forgot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
}

.remember-me {
    margin-bottom: 0;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #f1f1f1;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    text-align: right;
    margin-top: 0;
}

.forgot-password a {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.forgot-password a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* Buton Stili */
.btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--animation-fast), transform var(--animation-fast) var(--ease-bounce), box-shadow var(--animation-fast);
    overflow: hidden;
    position: relative;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn:active::after {
    animation: ripple var(--animation-normal) ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(30, 30);
        opacity: 0;
    }
}

/* Giriş Formundaki Buton */
#login .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 4px;
    background-color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 104, 179, 0.2);
}

#login .btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

#login .btn:hover i {
    animation: moveRight var(--animation-fast) var(--ease-bounce) forwards;
}

@keyframes moveRight {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
    100% {
        transform: translateX(3px);
    }
}

#login .btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 77, 133, 0.2);
}

#login .btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0, 77, 133, 0.3);
}

.form-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.form-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Yan panel animasyonları */
.side-panel {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 380px;
    background-color: #fff;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    padding: 30px 30px 30px 20px;
    z-index: 1000;
    transition: transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1), 
                box-shadow 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
    overflow-y: auto;
    max-height: 100vh;
    border-radius: 0;
    will-change: transform;
}

.register-panel {
    right: 0;
    transform: translateX(100%);
}

.reset-panel {
    left: 0;
    transform: translateX(-100%);
}

.register-panel.active, 
.reset-panel.active {
    transform: translateX(0);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
}

.reset-panel.active {
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
}

/* Şifre kuralları normalde gizli olsun */
.password-rules {
    display: block;
    visibility: hidden;
    opacity: 0;
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border-left: 3px solid #0080c4;
    font-size: 0.9em;
    transform: translateY(-10px);
    transition: visibility 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

/* Şifre alanı odaklandığında veya değeri varsa kuralları göster */
.password-field input:focus ~ .password-rules {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    display: block;
}

/* Panel Overlay animasyonu */
.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--animation-normal) ease, visibility var(--animation-normal) ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Yan panel stilleri */
.side-panel {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 380px;
    background-color: #fff;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    padding: 30px 30px 30px 20px;
    z-index: 1000;
    transition: transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1), 
                box-shadow 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
    overflow-y: auto;
    max-height: 100vh;
    border-radius: 0;
    will-change: transform;
}

.register-panel {
    right: 0;
    transform: translateX(100%);
}

.reset-panel {
    left: 0;
    transform: translateX(-100%);
}

.register-panel.active, 
.reset-panel.active {
    transform: translateX(0);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
}

.reset-panel.active {
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
}

/* Panel kapama butonları */
.close-panel {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-panel:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.close-panel:before,
.close-panel:after {
    content: '';
    position: absolute;
    width: 15px;
    height: 2px;
    background-color: #666;
    transition: background-color 0.3s;
}

.close-panel:hover:before,
.close-panel:hover:after {
    background-color: #333;
}

.close-panel:before {
    transform: rotate(45deg);
}

.close-panel:after {
    transform: rotate(-45deg);
}

.form h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.info-text {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: #007bff;
}

/* Yan panellerdeki form elemanları için özel stil */
.side-panel .input-with-icon input {
    padding: 12px 15px 12px 45px;
    width: 100%;
    box-sizing: border-box;
}

.side-panel .input-with-icon i {
    left: 15px;
    color: #777;
}

footer {
    width: 100%;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 12px;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.7);
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

footer span {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 5px;
}

@media (max-width: 768px) {
    .form-container {
        padding: 30px;
    }
    
    .side-panel {
        width: 280px;
        padding: 20px;
    }
    
    .remember-forgot-row {
        margin-bottom: 15px;
    }
    
    .logo img {
        max-width: 150px;
    }
    
    #login h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .login-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .input-with-icon input {
        min-height: 44px;
    }
    
    .checkmark {
        height: 22px;
        width: 22px;
    }
    
    .checkbox-container .checkmark:after {
        left: 8px;
        top: 3px;
        width: 6px;
        height: 12px;
    }
    
    .toggle-password {
        width: 32px;
        height: 32px;
    }
    
    .toggle-password i {
        font-size: 16px;
    }
    
    .btn {
        min-height: 46px;
    }
    
    input:focus, button:focus, a:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    .btn:active {
        transform: scale(0.97);
        background-color: var(--primary-dark);
    }
    
    .forgot-password a:active,
    .terms-link:active,
    .form-footer a:active {
        opacity: 0.7;
    }
    
    #refresh-captcha:active {
        transform: rotate(180deg) scale(0.95);
    }
    
    /* Hardware hızlandırma için transform özelliği kullanımı */
    .form-container, 
    .btn, 
    .side-panel {
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-font-smoothing: subpixel-antialiased;
    }
    
    /* Animasyonları basitleştir */
    .side-panel {
        transition: transform 0.3s ease;
    }
    
    /* Gölgeleri basitleştir */
    .form-container {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }
    
    /* Seçim durumları için sadece opaklık yerine renk değişimi kullan */
    .checkbox-container:hover input ~ .checkmark {
        background-color: #e6e6e6;
    }
    
    /* Basitleştirilmiş hover efektleri */
    .btn:hover {
        background-color: var(--primary-dark);
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.97);
    }
    
    :root {
        --animation-fast: 0.15s;
        --animation-normal: 0.25s;
        --animation-slow: 0.4s;
    }
    
    /* Mobil cihazlarda daha basit animasyonlar */
    .btn:hover {
        transform: translateY(-2px);
    }
    
    /* Dokunmatik hareket animasyonları */
    .btn:active {
        transform: scale(0.97);
        transition: transform 0.1s;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 25px;
        border-radius: 10px;
    }
    
    .side-panel {
        width: 100%;
    }
    
    .register-panel {
        transform: translateX(100%);
    }
    
    .reset-panel {
        transform: translateX(-100%);
    }
    
    #login h2 {
        font-size: 22px;
    }
    
    .login-subtitle {
        font-size: 13px;
    }
    
    #login .input-group input {
        padding: 12px 15px;
    }
    
    #login .btn {
        padding: 12px;
    }
    
    .remember-forgot-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .forgot-password {
        width: 100%;
        text-align: left;
    }
    
    .checkbox-container {
        font-size: 13px;
    }
    
    .captcha-box {
        font-size: 14px;
        padding: 10px;
    }
    
    .captcha-container label {
        font-size: 13px;
    }
    
    .input-group {
        margin-bottom: 16px;
    }
    
    main {
        padding: 10px;
    }
    
    .form-container {
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .container {
        padding: 0 10px;
    }
}

@media (max-width: 360px) {
    .form-container {
        padding: 20px;
    }
    
    .logo img {
        max-width: 130px;
    }
    
    #login h2 {
        font-size: 20px;
    }
    
    .login-subtitle {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .input-group label {
        font-size: 13px;
    }
    
    .input-with-icon input {
        font-size: 14px;
        padding: 10px 15px 10px 40px;
    }
    
    .input-with-icon i {
        font-size: 14px;
    }
    
    .btn {
        font-size: 14px;
        padding: 10px;
    }
    
    .form-footer {
        font-size: 12px;
    }
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.terms-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.register-panel .input-group {
    margin-bottom: 15px;
}

/* Yan panellerin yüksek içerik durumunda scrollbar göstermesi */
.side-panel::-webkit-scrollbar {
    width: 6px;
}

.side-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.side-panel::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.side-panel::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Tarih ve telefon girişi için özel stil */
input[pattern] {
    position: relative;
    font-family: monospace;
    letter-spacing: 0.5px;
}

/* Doğum tarihi formatını vurgulamak için */
#register-birthdate::placeholder {
    letter-spacing: 0.5px;
}

/* TC Kimlik No için özel stil */
#register-tcno {
    font-family: monospace;
    letter-spacing: 1px;
}

/* Şifre kuralları için küçük listeler */
.password-rules ul {
    list-style-type: none;
    padding-left: 0;
    margin: 10px 0 0;
}

.password-rules li {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.password-rules li i {
    margin-right: 8px;
    font-size: 10px;
    color: #ccc;
}

.password-rules li.valid i {
    color: #00b894;
}

/* Şifre güçlük göstergesi */
.password-strength {
    height: 5px;
    background-color: #eee;
    border-radius: 3px;
    margin-bottom: 10px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    background-color: #0080c4;
    transition: width var(--animation-normal) var(--ease-out), background-color var(--animation-normal);
}

/* Şifre göster/gizle butonları */
.toggle-password {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    z-index: 2;
    transition: color var(--animation-fast);
}

.toggle-password:focus {
    outline: none;
}

.toggle-password:hover {
    color: #007bff;
}

.toggle-password i {
    transition: transform var(--animation-normal) var(--ease-bounce);
}

.toggle-password:hover i {
    transform: scale(1.2);
}

/* Şifre eşleşme durumu */
#password-match-status {
    font-size: 12px;
    margin-top: 4px;
    color: #dc3545;
    display: none;
}

#password-match-status.match {
    color: var(--secondary-color);
    display: block;
}

#password-match-status.no-match {
    color: #dc3545;
    display: block;
}

/* Form başlık stilini güncelleme */
.side-panel h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    text-align: left;
    font-weight: 500;
}

/* Captcha Stili */
.captcha-container {
    margin-bottom: 20px;
}

.captcha-container label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
}

.captcha-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

#captcha-question {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

#refresh-captcha {
    background: none;
    border: none;
    color: #0080c4;
    cursor: pointer;
    padding: 5px;
    transition: color var(--animation-fast), transform var(--animation-normal) var(--ease-bounce);
}

#refresh-captcha:hover {
    animation: rotate360 var(--animation-slow) var(--ease-in-out);
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* reCAPTCHA Stili yerine bu stil kullanılacak, eski stili kaldırıyoruz */
.recaptcha-container {
    display: none;
}

/* Safari mobil fiks */
@supports (-webkit-touch-callout: none) {
    .input-with-icon input, 
    .btn, 
    .toggle-password {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Tablet görünümü için özel düzenlemeler */
@media (min-width: 481px) and (max-width: 768px) {
    .form-container {
        max-width: 400px;
    }
    
    main {
        align-items: flex-start;
        padding-top: 50px;
    }
    
    /* Yatay modda tablet düzenlemeleri */
    @media (orientation: landscape) {
        main {
            padding-top: 20px;
        }
        
        .form-container {
            max-height: 80vh;
            overflow-y: auto;
        }
    }
}

/* Mobil cihazlarda portre/yatay mod düzenlemeleri */
@media (max-width: 480px) and (orientation: landscape) {
    .form-container {
        max-width: 500px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .remember-forgot-row {
        flex-direction: row; /* Yatay modda tek satır olsun */
    }
    
    .input-group {
        margin-bottom: 12px; /* Daha kompakt */
    }
}

/* Düşük pil modu için düzenlemeler */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
    
    .background-image {
        transition: none;
    }
}

/* Hata durumu animasyonu */
.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-3px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(3px, 0, 0);
    }
}

/* Form elementleri için gelişmiş geçişler */
.input-with-icon input,
.captcha-box,
.checkbox-container .checkmark {
    transition: border-color var(--animation-fast), background-color var(--animation-fast), box-shadow var(--animation-fast);
}

/* Şekil değişiklikleri için animasyonlar */
.input-with-icon input:focus,
.checkbox-container:hover input ~ .checkmark {
    animation: pulseGlow var(--animation-normal) var(--ease-out);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 104, 179, 0.1);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(0, 104, 179, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 104, 179, 0);
    }
}

/* Checkbox animasyonu */
.checkbox-container input:checked ~ .checkmark {
    animation: checkboxPop var(--animation-fast) var(--ease-bounce);
}

@keyframes checkboxPop {
    0% {
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.checkbox-container .checkmark:after {
    transition: all var(--animation-fast) var(--ease-bounce);
}

/* Form geçiş animasyonları */
.slide-in {
    animation: slideInAnimation var(--animation-normal) var(--ease-out) forwards;
}

.slide-out {
    animation: slideOutAnimation var(--animation-normal) var(--ease-out) forwards;
}

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

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

/* Yükleme buton stili */
.btn.loading {
    cursor: wait;
    position: relative;
}

.btn.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    animation: loadingShimmer 1.5s infinite;
    pointer-events: none;
}

@keyframes loadingShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Captcha animasyonları */
.fade-in {
    animation: fadeInAnimation var(--animation-fast) var(--ease-out) forwards;
}

.fade-out {
    animation: fadeOutAnimation var(--animation-fast) var(--ease-out) forwards;
}

@keyframes fadeInAnimation {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOutAnimation {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Sayfa geçiş animasyonu */
.page-transition {
    animation: pageTransition var(--animation-normal) forwards;
}

@keyframes pageTransition {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Buton fokus efekti */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 128, 196, 0.25);
    animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 128, 196, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(0, 128, 196, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 128, 196, 0);
    }
}

/* Formların canlanma efekti */
.input-group {
    animation: staggeredFadeIn 0.5s calc(var(--animation-normal) * var(--i, 0)) both;
}

.input-group:nth-child(1) { --i: 0.1; }
.input-group:nth-child(2) { --i: 0.2; }
.input-group:nth-child(3) { --i: 0.3; }
.input-group:nth-child(4) { --i: 0.4; }
.input-group:nth-child(5) { --i: 0.5; }
.input-group:nth-child(6) { --i: 0.6; }
.input-group:nth-child(7) { --i: 0.7; }
.input-group:nth-child(8) { --i: 0.8; }

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