/* Modern Header Tasarımı */
.modern-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.modern-header .navbar {
    padding: 1rem 0;
    background: transparent !important;
    border-bottom: none;
    box-shadow: none;
    margin-bottom: 0;
}

.modern-brand {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    transition: transform 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.modern-brand:hover {
    transform: translateY(-2px);
}

.brand-logo {
    height: 45px;
    width: auto;
    margin-right: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.brand-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.modern-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.modern-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.modern-toggler i {
    font-size: 1.2rem;
    color: white;
}

.modern-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* Login Partial Düzenlemesi */
.modern-header .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.modern-header .navbar-nav .nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.modern-header .navbar-nav .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.modern-header .navbar-nav .btn:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Tasarım */
@media (max-width: 991px) {
    .modern-header .navbar {
        padding: 0.75rem 0;
    }
    
    .brand-logo {
        height: 35px;
        margin-right: 10px;
    }
    
    .brand-text {
        font-size: 1.5rem;
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        margin-top: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .brand-logo {
        height: 30px;
        margin-right: 8px;
    }
    
    .brand-text {
        font-size: 1.3rem;
    }
    
    .modern-header .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
  font-size: 18px;
  font-family: 'Inter', sans-serif;
}

body {
    margin-bottom: 60px;
    overflow-y: scroll;
    font-size: 1.1rem;
    background-color: #f8f9fa;
}

/* Modern Login Page Tasarımı */
/* Login sayfası için body sıfırlama */
body:has(.login-container),
body.login-page {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: transparent !important;
    width: 100% !important;
    height: 100vh !important;
    position: relative !important;
}

html:has(.login-container),
html.login-page {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow-x: hidden !important;
}

.login-container {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    width: 100%;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin: 0;
    box-sizing: border-box;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    z-index: -1;
}

.login-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.login-content {
    width: 100%;
    max-width: 500px;
    z-index: 10;
}

.login-card {
    background: rgba(255, 255, 255, 0.25); /* Fallback daha opak background */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* Safari için */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Backdrop filter desteklenmiyorsa fallback */
@supports not (backdrop-filter: blur(20px)) {
    .login-card {
        background: rgba(255, 255, 255, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.login-logo {
    width: 120px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.1);
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-weight: 400;
}

.login-form {
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.input-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    z-index: 2;
    transition: color 0.3s ease;
}

.modern-input {
    width: 100%;
    min-width: 0;
    padding: 1rem 1rem 1rem 2.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 400;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modern-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.modern-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.modern-input:focus + .modern-label,
.modern-input:not(:placeholder-shown) + .modern-label {
    transform: translateY(-1.5rem) scale(0.8);
    color: rgba(255, 255, 255, 0.9);
}

.modern-input:focus ~ .input-icon {
    color: white;
}

/* Autofill stillerini override et - Güçlü çözüm */
.modern-input:-webkit-autofill,
.modern-input:-webkit-autofill:hover,
.modern-input:-webkit-autofill:focus,
.modern-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.1) inset !important;
    -webkit-text-fill-color: white !important;
    background-color: transparent !important;
    background-image: none !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Autofill focus durumu için özel stil */
.modern-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.15) inset !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    outline: none !important;
}

.modern-label {
    position: absolute;
    left: 2.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    z-index: 1;
}

.validation-error {
    display: block;
    color: #ff6b6b;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.remember-me-wrapper {
    margin-bottom: 2rem;
}

.modern-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.modern-checkbox input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    cursor: pointer;
}

.checkmark {
    height: 20px;
    width: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
}

.modern-checkbox:hover .checkmark {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.modern-checkbox input:checked ~ .checkmark {
    background: white;
    border-color: white;
}

.modern-checkbox input:checked ~ .checkmark:after {
    content: "";
    position: absolute;
    display: block;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #667eea;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 400;
}

.modern-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46a3 100%);
}

.modern-btn:active {
    transform: translateY(0);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.modern-btn:hover .btn-icon {
    transform: translateX(4px);
}

.login-footer {
    text-align: center;
}

.forgot-password {
    margin-bottom: 1rem;
}

.forgot-password a,
.register-link a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password a:hover,
.register-link a:hover {
    color: white;
    text-decoration: underline;
}

.register-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Responsive Login Tasarımı */
/* iPhone 12 Pro ve benzeri cihazlar için özel optimizasyon */
@media (max-width: 430px) and (max-height: 932px) {
    .login-container {
        padding: 0.5rem;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }
    
    .login-content {
        max-width: 100%;
        width: 100%;
    }
    
    .login-card {
        padding: 1.5rem 1rem;
        margin: 0;
        border-radius: 16px;
        max-width: 380px;
        width: 100%;
        margin: 0 auto;
    }
    
    .login-logo {
        width: 60px;
    }
    
    .login-title {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .login-header {
        margin-bottom: 1.5rem;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
}

@media (max-width: 992px) {
    .login-container {
        padding: 0.75rem;
        align-items: center;
        justify-content: center;
    }
    
    .login-content {
        max-width: 500px;
        width: 100%;
    }
    
    .login-card {
        padding: 2rem 1.75rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 0.75rem;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }
    
    .login-content {
        max-width: 100%;
        width: 100%;
    }
    
    .login-card {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
        margin: 0;
        max-width: 420px;
        width: 100%;
        margin: 0 auto;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
    
    .login-logo {
        width: 60px;
    }
    
    .modern-input {
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
        font-size: 16px; /* iOS zoom önleme */
        border-radius: 10px;
    }
    
    .input-icon {
        left: 0.875rem;
    }
    
    .modern-label {
        left: 2.5rem;
    }
    
    .shape-1, .shape-2, .shape-3 {
        opacity: 0.2;
    }
    
    .input-group {
        margin-bottom: 1.25rem;
    }
    
    .remember-me-wrapper {
        margin-bottom: 1.5rem;
    }
    
    .login-form {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 0.5rem;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }
    
    .login-content {
        max-width: 100%;
        width: 100%;
    }
    
    .login-card {
        padding: 1.25rem 0.875rem;
        border-radius: 12px;
        margin: 0;
        max-width: 360px;
        width: 100%;
        margin: 0 auto;
    }
    
    .login-title {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
    }
    
    .login-logo {
        width: 50px;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
    
    .login-header {
        margin-bottom: 1.5rem;
    }
    
    .modern-input {
        padding: 0.75rem 0.75rem 0.75rem 2.25rem;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .input-icon {
        left: 0.75rem;
        font-size: 1rem;
    }
    
    .modern-label {
        left: 2.25rem;
    }
    
    .input-group {
        margin-bottom: 1rem;
    }
    
    .remember-me-wrapper {
        margin-bottom: 1.25rem;
    }
    
    .login-form {
        margin-bottom: 1.25rem;
    }
    
    .modern-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        border-radius: 8px;
    }
}

/* Çok küçük ekranlar ve düşük çözünürlük */
@media (max-width: 360px) {
    .login-container {
        padding: 0.25rem;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }
    
    .login-card {
        padding: 1rem 0.75rem;
        border-radius: 8px;
        margin: 0;
        max-width: 320px;
        width: 100%;
        margin: 0 auto;
    }
    
    .login-title {
        font-size: 1.25rem;
        margin-bottom: 0.125rem;
    }
    
    .login-subtitle {
        font-size: 0.8rem;
    }
    
    .login-logo {
        width: 40px;
    }
    
    .logo-container {
        margin-bottom: 0.75rem;
    }
    
    .login-header {
        margin-bottom: 1rem;
    }
    
    .modern-input {
        padding: 0.625rem 0.625rem 0.625rem 2rem;
        font-size: 16px;
        border-radius: 6px;
    }
    
    .input-icon {
        left: 0.625rem;
        font-size: 0.9rem;
    }
    
    .modern-label {
        left: 2rem;
    }
    
    .input-group {
        margin-bottom: 0.875rem;
    }
    
    .remember-me-wrapper {
        margin-bottom: 1rem;
    }
    
    .login-form {
        margin-bottom: 1rem;
    }
    
    .modern-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    
    .login-footer {
        font-size: 0.85rem;
    }
    
    .shape-1, .shape-2, .shape-3 {
        display: none;
    }
}

/* iPhone SE ve çok küçük ekranlar */
@media (max-width: 375px) and (max-height: 667px) {
    .login-container {
        padding: 0.25rem;
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }
    
    .login-card {
        padding: 0.875rem 0.625rem;
        max-width: 340px;
    }
    
    .login-title {
        font-size: 1.2rem;
    }
    
    .login-logo {
        width: 35px;
    }
    
    .modern-input {
        padding: 0.6rem 0.6rem 0.6rem 1.9rem;
        font-size: 16px;
    }
    
    .input-icon {
        left: 0.6rem;
        font-size: 0.85rem;
    }
    
    .modern-label {
        left: 1.9rem;
    }
}

/* Samsung Galaxy S8+ ve uzun ekranlar */
@media (max-width: 414px) and (min-height: 800px) {
    .login-container {
        padding: 1rem 0.5rem;
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }
    
    .login-card {
        max-width: 380px;
        padding: 1.5rem 1rem;
    }
    
    .login-title {
        font-size: 1.6rem;
    }
}

/* Düşük yükseklik ekranlar için özel kurallar */
@media (max-height: 700px) and (min-width: 361px) {
    .login-container {
        padding: 0.75rem;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }
    
    .login-card {
        padding: 1.25rem 1rem;
        margin: 0;
        max-width: 400px;
        width: 100%;
        margin: 0 auto;
    }
    
    .login-header {
        margin-bottom: 1rem;
    }
    
    .logo-container {
        margin-bottom: 0.5rem;
    }
    
    .login-title {
        font-size: 1.4rem;
        margin-bottom: 0.25rem;
    }
    
    .login-subtitle {
        font-size: 0.85rem;
    }
    
    .input-group {
        margin-bottom: 0.875rem;
    }
    
    .remember-me-wrapper {
        margin-bottom: 1rem;
    }
    
    .login-form {
        margin-bottom: 1rem;
    }
    
    .modern-input {
        padding: 0.75rem 0.75rem 0.75rem 2.25rem;
        border-radius: 8px;
    }
    
    .modern-btn {
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
    }
}

/* Çok düşük yükseklik ekranlar */
@media (max-height: 600px) {
    .login-container {
        padding: 0.5rem;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }
    
    .login-card {
        padding: 1rem 0.875rem;
        margin: 0;
        max-width: 360px;
        width: 100%;
        margin: 0 auto;
    }
    
    .login-header {
        margin-bottom: 0.75rem;
    }
    
    .logo-container {
        margin-bottom: 0.5rem;
    }
    
    .login-logo {
        width: 45px;
    }
    
    .login-title {
        font-size: 1.25rem;
        margin-bottom: 0.125rem;
    }
    
    .login-subtitle {
        font-size: 0.8rem;
    }
    
    .input-group {
        margin-bottom: 0.625rem;
    }
    
    .remember-me-wrapper {
        margin-bottom: 0.875rem;
    }
    
    .login-form {
        margin-bottom: 0.875rem;
    }
    
    .modern-input {
        padding: 0.625rem 0.625rem 0.625rem 2rem;
        font-size: 16px;
        border-radius: 6px;
    }
    
    .input-icon {
        left: 0.625rem;
        font-size: 0.9rem;
    }
    
    .modern-label {
        left: 2rem;
    }
    
    .modern-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    
    .login-footer {
        font-size: 0.8rem;
    }
    
    .shape-1, .shape-2, .shape-3 {
        opacity: 0.1;
    }
}

/* Landscape telefon modları */
@media (max-height: 500px) and (orientation: landscape) {
    .login-container {
        padding: 0.5rem;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }
    
    .login-content {
        max-width: 450px;
        width: 100%;
    }
    
    .login-card {
        padding: 0.75rem 1rem;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-width: 420px;
        width: 100%;
        margin: 0 auto;
        border-radius: 8px;
    }
    
    .login-header {
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .logo-container {
        margin-bottom: 0.25rem;
    }
    
    .login-logo {
        width: 30px;
    }
    
    .login-title {
        font-size: 1.1rem;
        margin-bottom: 0;
    }
    
    .login-subtitle {
        font-size: 0.75rem;
    }
    
    .input-group {
        margin-bottom: 0.5rem;
    }
    
    .modern-input {
        padding: 0.5rem 0.5rem 0.5rem 1.75rem;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .input-icon {
        left: 0.5rem;
        font-size: 0.85rem;
    }
    
    .modern-label {
        left: 1.75rem;
    }
    
    .remember-me-wrapper {
        margin-bottom: 0.625rem;
    }
    
    .login-form {
        margin-bottom: 0.625rem;
    }
    
    .modern-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    
    .login-footer {
        font-size: 0.7rem;
        text-align: center;
    }
    
    .shape-1, .shape-2, .shape-3 {
        display: none;
    }
}

/* Mobil uyumluluk için responsive kurallar */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }
    
    body {
        font-size: 1rem;
    }
    
    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Navbar mobil düzenlemeleri */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Form elementleri mobil düzenlemeleri */
    .form-control, .form-select {
        font-size: 16px !important; /* iOS zoom önleme */
        padding: 0.5rem 0.75rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Tablo mobil düzenlemeleri */
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .table th, .table td {
        padding: 0.5rem 0.25rem;
    }
    
    /* Mobilde tablo sütunlarını gizle */
    .mobile-hide {
        display: none !important;
    }
    
    /* Mobilde dikey düzen */
    .mobile-stack {
        flex-direction: column !important;
    }
    
    .mobile-stack > * {
        width: 100% !important;
        margin-bottom: 1rem;
    }
    
    /* Mobilde padding azaltma */
    .mobile-padding {
        padding: 1rem !important;
    }
    
    /* Mobilde margin azaltma */
    .mobile-margin {
        margin: 0.5rem 0 !important;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    body {
        font-size: 0.9rem;
    }
    
    .container-fluid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Çok küçük ekranlarda daha da küçük fontlar */
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    /* Mobilde tablo sütunlarını daha da gizle */
    .mobile-hide-sm {
        display: none !important;
    }
    
    /* Mobilde input group düzenlemeleri */
    .input-group {
        flex-wrap: wrap;
    }
    
    .input-group .form-control {
        min-width: 0;
        flex: 1;
    }
    
    /* Mobilde buton boyutları */
    .btn {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Mobilde form etiketleri */
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    /* Mobilde tablo responsive */
    .table-responsive {
        border-radius: 8px;
        overflow: hidden;
    }
    
    /* Mobilde sidebar gizleme */
    .col-md-3 {
        margin-bottom: 1rem;
    }
}

/* Ekstra mobil responsive kurallar */

/* iPhone 13 Mini */
@media (max-width: 375px) and (max-height: 812px) {
    .login-card {
        max-width: 350px;
        padding: 1.25rem 0.875rem;
        border-radius: 14px;
    }
    
    .login-title {
        font-size: 1.4rem;
    }
    
    .modern-input {
        padding: 0.7rem 0.7rem 0.7rem 2.2rem;
        border-radius: 8px;
    }
    
    .input-icon {
        left: 0.7rem;
    }
    
    .modern-label {
        left: 2.2rem;
    }
}

/* iPhone 14/15 ve benzer cihazlar */
@media (max-width: 393px) and (max-height: 852px) {
    .login-container {
        padding: 0.75rem;
    }
    
    .login-card {
        max-width: 370px;
        padding: 1.5rem 1rem;
    }
    
    .login-title {
        font-size: 1.6rem;
    }
}

/* iPhone 14/15 Plus */
@media (max-width: 430px) and (max-height: 932px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-card {
        max-width: 400px;
        padding: 1.75rem 1.25rem;
    }
}

/* Samsung Galaxy S20/S21/S22 */
@media (max-width: 412px) and (max-height: 915px) {
    .login-card {
        max-width: 385px;
        padding: 1.5rem 1rem;
    }
}

/* Çok geniş mobil ekranlar */
@media (max-width: 480px) and (min-height: 800px) {
    .login-container {
        padding: 1.5rem 1rem;
    }
    
    .login-card {
        max-width: 420px;
        padding: 2rem 1.5rem;
    }
    
    .login-title {
        font-size: 1.8rem;
    }
    
    .modern-input {
        padding: 0.9rem 0.9rem 0.9rem 2.6rem;
        border-radius: 10px;
    }
    
    .input-icon {
        left: 0.9rem;
    }
    
    .modern-label {
        left: 2.6rem;
    }
}

/* Ekstra küçük genişlik */
@media (max-width: 320px) {
    .login-container {
        padding: 0.25rem;
    }
    
    .login-card {
        padding: 0.875rem 0.5rem;
        max-width: 290px;
        border-radius: 6px;
    }
    
    .login-title {
        font-size: 1.1rem;
    }
    
    .login-logo {
        width: 30px;
    }
    
    .modern-input {
        padding: 0.5rem 0.5rem 0.5rem 1.8rem;
        font-size: 14px;
        border-radius: 4px;
    }
    
    .input-icon {
        left: 0.5rem;
        font-size: 0.8rem;
    }
    
    .modern-label {
        left: 1.8rem;
    }
    
    .modern-btn {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
        border-radius: 4px;
    }
}

/* Tablet portrait modu için özel kurallar */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .login-container {
        padding: 2rem;
    }
    
    .login-card {
        max-width: 600px;
        padding: 3rem 2rem;
        border-radius: 24px;
    }
    
    .login-title {
        font-size: 2.2rem;
    }
    
    .login-logo {
        width: 90px;
    }
    
    .modern-input {
        padding: 1.2rem 1.2rem 1.2rem 3rem;
        font-size: 1.1rem;
        border-radius: 14px;
    }
    
    .input-icon {
        left: 1.2rem;
        font-size: 1.3rem;
    }
    
    .modern-label {
        left: 3rem;
    }
    
    .modern-btn {
        padding: 1.2rem 2rem;
        font-size: 1.2rem;
        border-radius: 14px;
    }
}

/* Performance optimizasyonları */
.login-card, .modern-input, .modern-btn {
    will-change: transform;
    transform: translateZ(0);
}

/* iOS Safari için özel optimizasyonlar */
@supports (-webkit-touch-callout: none) {
    .login-container {
        -webkit-overflow-scrolling: touch;
    }
    
    .modern-input {
        -webkit-appearance: none;
        border-radius: 8px;
    }
    
    .modern-btn {
        -webkit-appearance: none;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Touch cihazlar için büyük touch target */
@media (pointer: coarse) {
    .modern-btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    .modern-checkbox {
        min-height: 44px;
        min-width: 44px;
    }
    
    .modern-input {
        min-height: 48px;
    }
}

/* High DPI ekranlar için optimizasyon */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .login-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .login-card {
        border-width: 0.5px;
    }
}

/* Sosyal Medya Butonları */
.social-media-section {
    margin-top: 2rem;
    text-align: center;
}

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

.divider-text {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-btn:hover::before {
    left: 100%;
}

.facebook-btn {
    background: rgba(24, 119, 242, 0.2);
    color: #ffffff;
    border-color: rgba(24, 119, 242, 0.3);
}

.facebook-btn:hover {
    background: rgba(24, 119, 242, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.instagram-btn {
    background: rgba(225, 48, 108, 0.2);
    color: #ffffff;
    border-color: rgba(225, 48, 108, 0.3);
}

.instagram-btn:hover {
    background: rgba(225, 48, 108, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.social-btn i {
    font-size: 1.1rem;
}

/* Mobil için responsive tasarım */
@media (max-width: 480px) {
    .social-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .social-btn {
        width: 100%;
        padding: 1rem;
    }
    
    .divider-text {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Tablet için optimizasyon */
@media (max-width: 768px) and (min-width: 481px) {
    .social-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }
}
