* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 20%, #1a1a1a 40%, #0f0f0f 60%, #1a1a1a 80%, #000000 100%);
    background-size: 400% 400%;
    background-attachment: fixed;
    animation: gradientMove 12s ease infinite;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: calc(var(--vh, 1vh) * 100);
    height: 100vh;
    height: 100dvh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    will-change: background-position;
    transform: translateZ(0);
}

/* Siyah Gradyan Animasyonu - GPU Optimize */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Teknoloji Temalı Grid ve Circuit Board Efektleri */
body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        /* Grid Pattern */
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        /* Circuit Board Lines */
        linear-gradient(0deg, transparent 0%, rgba(255, 202, 0, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, transparent 0%, rgba(255, 202, 0, 0.08) 1px, transparent 1px);
    background-size: 
        50px 50px,
        50px 50px,
        100px 100px,
        100px 100px;
    background-position: 0 0, 0 0, 0 0, 0 0;
    animation: techGridMove 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

body::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        /* Diagonal Tech Lines */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 202, 0, 0.06) 2px,
            rgba(255, 202, 0, 0.06) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(255, 202, 0, 0.05) 2px,
            rgba(255, 202, 0, 0.05) 4px
        );
    background-size: 200px 200px, 200px 200px;
    background-position: 0 0, 0 0;
    animation: techDiagonalMove 25s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes techGridMove {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 50px 50px, 50px 50px, 100px 100px, 100px 100px;
    }
}

@keyframes techDiagonalMove {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 200px 200px, -200px -200px;
    }
}

/* Login Container - Beyaz Arkaplan */
.login-container {
    background: #ffffff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 50px 45px;
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    width: 100%;
    max-width: 480px;
    animation: fadeInUp 0.6s ease;
    position: relative;
    z-index: 9999;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow-y: auto;
    overflow-x: hidden;
    margin: auto;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    -webkit-overflow-scrolling: touch;
}

/* Login Container İçi Teknoloji Efekti */
.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 202, 0, 0.03) 2px,
            rgba(255, 202, 0, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 202, 0, 0.03) 2px,
            rgba(255, 202, 0, 0.03) 4px
        );
    background-size: 40px 40px;
    animation: containerTechMove 10s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes containerTechMove {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        background-position: 0 0;
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        background-position: 40px 40px;
    }
}

.login-container > * {
    position: relative;
    z-index: 1;
}

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

.login-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0;
    border: none;
    position: relative;
}

.login-logo {
    max-width: 220px;
    height: auto;
    margin: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: none;
    border: none;
    animation: logoBounce 2s ease-in-out infinite;
}

@keyframes logoBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

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

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-left {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-wrapper:focus-within .input-icon-left {
    color: #ffca00;
}

.form-group input {
    width: 100%;
    padding: 18px 22px 18px 56px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    background: #f8f9fa;
    color: #1a1a1a;
    font-weight: 500;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.form-group input::placeholder {
    color: #999;
    font-weight: 400;
}

.form-group input:focus {
    border-color: #ffca00;
    box-shadow: 0 0 0 3px rgba(255, 202, 0, 0.15);
    background: #ffffff;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    align-items: stretch;
}

/* reCAPTCHA yerleşimi */
.recaptcha-wrapper {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.recaptcha-wrapper .g-recaptcha {
    transform-origin: center;
}

.btn-login {
    flex: 1;
    padding: 18px 28px;
    background: linear-gradient(135deg, #ffca00 0%, #ffb800 100%);
    color: #000000;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 202, 0, 0.4);
    text-decoration: none;
}

.btn-site-panel {
    padding: 18px 24px;
    background: rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.3px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-site-panel:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-site-panel:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.btn-login::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

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

.btn-login:hover::after {
    width: 300px;
    height: 300px;
}

.btn-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-login:hover {
    background: linear-gradient(135deg, #ffb800 0%, #ffa500 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 202, 0, 0.5);
}

.btn-login:hover .btn-arrow {
    transform: translateX(8px) scale(1.15);
}

.btn-login:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 202, 0, 0.4);
}

.btn-login:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 202, 0, 0.3), 0 12px 40px rgba(255, 202, 0, 0.5);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-login:disabled:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(255, 202, 0, 0.4);
}

/* Giriş Animasyonu */
.btn-login.submitting {
    pointer-events: none;
    background: linear-gradient(135deg, #ffb800 0%, #ffa500 100%);
}

.btn-login.submitting .btn-text::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

/* Bildirim Container - Login Container Altında */
.notification-container {
    position: fixed;
    top: auto;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    width: 100%;
    max-width: 480px;
    padding: 0 20px;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.notification {
    background: #ffffff;
    color: #dc2626;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(220, 38, 38, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    animation: notificationSlideUp 0.4s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

.notification.error {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
}

.notification.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.3);
}

.notification.warning {
    background: rgba(255, 202, 0, 0.15);
    color: #d97706;
    border-color: rgba(255, 202, 0, 0.3);
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
}

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

.error-message {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Ayarlar */
@media (max-width: 1024px) {
    body {
        padding: 15px;
    }
    
    .login-container {
        max-width: 95%;
        padding: 45px 40px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
        min-height: 100vh;
        min-height: -webkit-fill-available;
        height: 100vh;
        height: -webkit-fill-available;
    }
    
    .login-container {
        max-width: 95%;
        padding: 40px 35px;
        border-radius: 20px;
    }
    
    .login-logo {
        max-width: 200px;
    }
    
    .login-header {
        margin-bottom: 35px;
    }
    
    .notification-container {
        max-width: 95%;
        bottom: 20px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .login-container {
        padding: 30px 20px;
        border-radius: 16px;
        max-width: 100%;
    }
    
    .login-logo {
        max-width: 160px;
    }
    
    .login-header {
        margin-bottom: 30px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group input {
        padding: 16px 18px 16px 52px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .input-icon-left {
        left: 16px;
    }
    
    .button-group {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
    }

    .recaptcha-wrapper {
        margin-top: 16px;
        justify-content: center;
        transform: scale(0.9);
    }
    
    .btn-login {
        padding: 16px 24px;
        font-size: 16px;
        border-radius: 10px;
        width: 100%;
    }
    
    .btn-site-panel {
        padding: 16px 24px;
        font-size: 14px;
        border-radius: 10px;
        width: 100%;
    }
    
    .notification-container {
        max-width: 100%;
        bottom: 10px;
        padding: 0 10px;
    }
    
    .notification {
        padding: 14px 16px;
        font-size: 13px;
        border-radius: 10px;
    }
}

/* Landscape Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    body {
        padding: 10px;
        height: 100vh;
        height: 100dvh;
    }
    
    .login-container {
        padding: 25px 30px;
        max-width: 90%;
    }
    
    .login-logo {
        max-width: 140px;
        margin-bottom: 0;
    }
    
    .login-header {
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input {
        padding: 14px 18px 14px 50px;
    }
    
    .button-group {
        margin-top: 20px;
    }
    
    .btn-login {
        padding: 14px 24px;
    }
    
    .btn-site-panel {
        padding: 14px 20px;
        font-size: 13px;
    }
}

/* Very Small Screens */
@media (max-width: 360px) {
    .login-container {
        padding: 25px 18px;
    }
    
    .login-logo {
        max-width: 140px;
    }
    
    .form-group input {
        padding: 14px 16px 14px 48px;
        font-size: 15px;
    }
    
    .input-icon-left {
        left: 14px;
    }
    
    .button-group {
        gap: 10px;
    }
    
    .btn-login {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .btn-site-panel {
        padding: 14px 18px;
        font-size: 13px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-login {
        min-height: 48px;
    }
    
    .btn-site-panel {
        min-height: 48px;
    }
    
    .form-group input {
        min-height: 48px;
        font-size: 16px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .login-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Screen Reader Only - Erişilebilirlik için */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
