html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #23264a;
    height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.login-container {
    display: flex;
    min-height: 100vh;
    height: 100vh;
    position: relative;
    background: #23264a url('../img/aista-bg.png');
    background-size: cover;
    overflow: hidden;
    padding-bottom: 80px; /* Footer için alt boşluk */
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(35,38,74,0.95) 0%, rgba(35,38,74,0.85) 100%),
                url('../img/aista-logo.png') repeat;
    background-size: 50px;
    background-blend-mode: overlay;
    z-index: 1;
    opacity: 0.15;
}

.login-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Override for mobile devices */
@media (max-width: 1200px) {
    .login-content {
        justify-content: flex-start !important; /* Force override */
        align-items: center !important;
        flex-direction: column !important;
        padding: 20px !important;
        gap: 30px !important;
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .login-left {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        text-align: center !important;
        flex: none !important;
        margin: 0 !important;
    }
    
    .login-right {
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        flex: none !important;
        align-self: center !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        float: none !important;
        clear: both !important;
        display: block !important;
    }
}

.login-left {
    flex: 1;
    color: #fff;
    padding-right: 60px;
    max-width: 600px;
    height: auto; /* Allow height to adjust to content */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.aista-logo {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.aista-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-right: 10px;
    letter-spacing: 2px;
}

.aista-desc {
    font-size: 1.1rem;
    color: #f7c948;
    font-weight: 500;
    border-left: 3px solid #f7c948;
    padding-left: 10px;
}

.login-left h1 {
    font-size: 2.5rem;
    margin-bottom: 18px;
    font-weight: 700;
    margin-top: 0;
    background: linear-gradient(45deg, #fff 0%, #f7c948 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-left p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
}

.login-features {
    display: flex;
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.9);
}

.feature-item i {
    color: #f7c948;
    font-size: 1.2rem;
}

.login-right {
    background: #ffffff;
    width: 380px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px 30px;
    position: relative;
    max-height: 90vh;
    overflow-y: overlay;
    scrollbar-width: none; /* Firefox */
}
.login-right::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.login-right-inner {
    width: 100%;
}

.ozal-logo {
    width: 250px;
    margin: 0 auto 24px;
    display: block;
    transition: transform 0.3s ease;
}

.ozal-logo:hover {
    transform: scale(1.05);
}

.login-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    gap: 10px;
    width: 100%;
}

.tab-btn {
    background: #f3f4f6;
    color: #23264a;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.tab-btn i {
    font-size: 1.1rem;
}

.tab-btn:hover {
    background: #e5e7eb;
}

.tab-btn.active {
    background: #f7c948;
    color: #23264a;
    box-shadow: 0 2px 4px rgba(247,201,72,0.2);
}

.tab-content {
    display: none;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.login-form label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #23264a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-form label i {
    color: #f7c948;
}

.password-input {
    position: relative;
    width: 100%;
}

.password-input input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #23264a;
}

.login-form input {
    width: 100%;
    padding: 12px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    background: #f8fafc;
    transition: all 0.2s;
    box-sizing: border-box;
}

.login-form input:focus {
    border-color: #f7c948;
    outline: none;
    box-shadow: 0 0 0 3px rgba(247,201,72,0.1);
}

.login-form select {
    width: 100%;
    padding: 12px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    background: #f8fafc;
    transition: all 0.2s;
    box-sizing: border-box;
    color: #23264a;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
.login-form select:focus {
    border-color: #f7c948;
    outline: none;
    box-shadow: 0 0 0 3px rgba(247,201,72,0.1);
}

.login-button {
    background: #f7c948;
    color: #23264a;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 14px 0;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

.login-button:hover {
    background: #eab308;
    transform: translateY(-1px);
}

.login-button:active {
    transform: translateY(0);
}

.login-button.loading {
    position: relative;
    color: transparent;
}

.login-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #23264a;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Register link modern style */
.register-link {
    margin-top: 18px;
    text-align: center;
    font-size: 1rem;
    color: #23264a;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 10px 0 8px 0;
    box-shadow: 0 2px 8px rgba(35,38,74,0.04);
    font-weight: 500;
}
.register-link a {
    color: #f7c948;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}
.register-link a:hover {
    color: #23264a;
    text-decoration: underline;
}

/* COMPLETE MOBILE OVERRIDE - NEW STRUCTURE */
@media (max-width: 1200px) {
    .login-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 20px 0 !important;
        height: auto !important;
        min-height: 100vh !important;
    }

    .login-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px !important;
        gap: 30px !important;
        height: auto !important;
        margin: 0 !important;
    }

    .login-left {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 0 !important;
        text-align: center !important;
        flex: none !important;
        margin: 0 !important;
        float: none !important;
        clear: both !important;
        position: static !important;
    }

    .login-right {
        display: block !important;
        width: 100% !important;
        max-width: 400px !important;
        padding: 30px 20px !important;
        border-radius: 12px !important;
        margin: 0 auto !important;
        flex: none !important;
        align-self: center !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        float: none !important;
        clear: both !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    }

    .aista-logo {
        justify-content: center !important;
        margin: 0 auto 32px !important;
    }

    .login-features {
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .login-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 20px 0 !important;
        height: auto !important;
        min-height: 100vh !important;
        width: 100% !important;
    }

    .login-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 15px !important;
        gap: 30px !important;
        height: auto !important;
        margin: 0 !important;
    }

    .login-left {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 0 !important;
        text-align: center !important;
        flex: none !important;
        margin: 0 !important;
        float: none !important;
        clear: both !important;
        position: static !important;
    }

    .aista-title {
        font-size: 2rem !important;
    }

    .aista-desc {
        font-size: 1rem !important;
    }

    .login-left h1 {
        font-size: 2.2rem !important;
        margin-bottom: 15px !important;
    }

    .login-left p {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
        padding: 0 10px !important;
    }

    /* Hide login-features on mobile */
    .login-features {
        display: none !important;
    }

    .login-right {
        display: block !important;
        width: 100% !important;
        max-width: 400px !important;
        padding: 30px 20px !important;
        border-radius: 12px !important;
        margin: 0 auto !important;
        flex: none !important;
        align-self: center !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        float: none !important;
        clear: both !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    }

    .ozal-logo {
        width: 200px !important;
        margin-bottom: 20px !important;
    }

    .login-tabs {
        margin-bottom: 20px !important;
        gap: 8px !important;
    }

    .tab-btn {
        padding: 12px 16px !important;
        font-size: 0.9rem !important;
        min-height: 44px !important;
    }

    .tab-text {
        display: inline !important;
    }

    .form-group {
        margin-bottom: 18px !important;
    }

    .login-form label {
        font-size: 0.95rem !important;
        margin-bottom: 6px !important;
    }

    .label-text {
        display: inline !important;
    }

    .login-form input {
        padding: 12px 14px !important;
        font-size: 16px !important;
        min-height: 44px !important;
    }

    .login-button {
        padding: 14px 0 !important;
        font-size: 1rem !important;
        min-height: 48px !important;
    }

    .register-link {
        margin-top: 20px !important;
        padding: 12px 0 !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .login-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 10px 0 !important;
        width: 100% !important;
    }

    .login-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 10px !important;
        gap: 20px !important;
        height: auto !important;
        margin: 0 !important;
    }

    .login-left {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 0 !important;
        text-align: center !important;
        flex: none !important;
        margin: 0 !important;
        float: none !important;
        clear: both !important;
        position: static !important;
    }

    .aista-title {
        font-size: 1.8rem !important;
    }

    .aista-desc {
        font-size: 0.95rem !important;
    }

    .login-left h1 {
        font-size: 2rem !important;
        margin-bottom: 10px !important;
    }

    .login-left p {
        font-size: 0.95rem !important;
        margin-bottom: 15px !important;
        padding: 0 5px !important;
        line-height: 1.6 !important;
    }

    /* Hide login-features on mobile */
    .login-features {
        display: none !important;
    }

    .login-right {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 25px 15px !important;
        border-radius: 10px !important;
        margin: 0 auto !important;
        flex: none !important;
        align-self: center !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        float: none !important;
        clear: both !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    }

    .ozal-logo {
        width: 180px !important;
        margin-bottom: 18px !important;
    }

    .login-tabs {
        margin-bottom: 18px !important;
        gap: 6px !important;
    }

    .tab-btn {
        padding: 10px 14px !important;
        font-size: 0.85rem !important;
        min-height: 42px !important;
    }

    .tab-btn i {
        font-size: 1rem !important;
    }

    .form-group {
        margin-bottom: 16px !important;
    }

    .login-form label {
        font-size: 0.9rem !important;
        margin-bottom: 5px !important;
    }

    .login-form input {
        padding: 10px 12px !important;
        font-size: 16px !important;
        min-height: 42px !important;
    }

    .login-button {
        padding: 12px 0 !important;
        font-size: 0.95rem !important;
        min-height: 44px !important;
    }

    .register-link {
        margin-top: 18px !important;
        padding: 10px 0 !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 360px) {
    .login-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 10px 0 !important;
        width: 100% !important;
    }

    .login-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 5px !important;
        gap: 15px !important;
        height: auto !important;
        margin: 0 !important;
    }

    .login-left {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 0 !important;
        text-align: center !important;
        flex: none !important;
        margin: 0 !important;
        float: none !important;
        clear: both !important;
        position: static !important;
    }

    .aista-title {
        font-size: 1.6rem !important;
    }

    .aista-desc {
        font-size: 0.9rem !important;
    }

    .login-left h1 {
        font-size: 1.8rem !important;
        margin-bottom: 8px !important;
    }

    .login-left p {
        font-size: 0.9rem !important;
        margin-bottom: 12px !important;
        padding: 0 2px !important;
        line-height: 1.5 !important;
    }

    /* Hide login-features on mobile */
    .login-features {
        display: none !important;
    }

    .login-right {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 12px !important;
        border-radius: 8px !important;
        margin: 0 auto !important;
        flex: none !important;
        align-self: center !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        float: none !important;
        clear: both !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    }

    .ozal-logo {
        width: 160px !important;
        margin-bottom: 15px !important;
    }

    .tab-btn {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        min-height: 40px !important;
    }

    .login-form input {
        padding: 8px 10px !important;
        min-height: 40px !important;
    }

    .login-button {
        padding: 10px 0 !important;
        font-size: 0.9rem !important;
        min-height: 42px !important;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .login-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        height: auto !important;
        min-height: 100vh !important;
        width: 100% !important;
    }

    .login-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 20px !important;
        gap: 15px !important;
        height: auto !important;
        margin: 0 !important;
    }

    .login-left {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px 0 !important;
        text-align: center !important;
        flex: none !important;
        margin: 0 !important;
        float: none !important;
        clear: both !important;
        position: static !important;
    }

    .login-left h1 {
        font-size: 1.8rem !important;
        margin-bottom: 8px !important;
    }

    .login-left p {
        font-size: 0.9rem !important;
        margin-bottom: 10px !important;
    }

    /* Hide login-features on mobile landscape */
    .login-features {
        display: none !important;
    }

    .login-right {
        display: block !important;
        width: 100% !important;
        max-width: 400px !important;
        padding: 20px 25px !important;
        max-height: 80vh !important;
        flex: none !important;
        margin: 0 auto !important;
        flex: none !important;
        align-self: center !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        float: none !important;
        clear: both !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    }

    .ozal-logo {
        width: 150px !important;
        margin-bottom: 15px !important;
    }
}

/* Touch device specific improvements */
.touch-device .tab-btn,
.touch-device .login-button,
.touch-device .toggle-password {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.touch-device .login-form input:focus {
    font-size: 16px; /* Prevent zoom on iOS */
}

/* High DPI display support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .ozal-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
    .login-form input:focus,
    .login-form select:focus,
    .tab-btn:focus,
    .login-button:focus {
        outline: 2px solid #f7c948;
        outline-offset: 2px;
    }

    .toggle-password:focus {
        outline: 2px solid #f7c948;
        outline-offset: 2px;
        border-radius: 4px;
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .login-container {
        overflow-x: hidden;
    }
    
    .login-content {
        overflow-x: hidden;
    }
}

/* Footer Styles */
.footer {
    background: rgba(35, 38, 74, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(247, 201, 72, 0.3);
    color: #ffffff;
    font-size: 0.875rem;
    z-index: 10;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 0;
    width: 100%;
}

.footer .container-fluid {
    padding: 0 20px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400;
}

.footer-separator {
    color: #f7c948 !important;
    margin: 0 15px;
    font-weight: 300;
}

/* Mobile responsive footer */
@media (max-width: 768px) {
    .footer {
        text-align: center;
        padding: 12px 0;
    }
    
    .footer-separator {
        display: block;
        margin: 6px 0;
        color: #f7c948 !important;
    }
    
    .footer-text {
        display: block;
        margin: 4px 0;
    }
    
    .login-container {
        padding-bottom: 70px; /* Mobile'da daha az boşluk */
    }
} 