/* ============================================
   MEB PASAPORT - LOGIN PAGE STYLES
   Modern, Responsive Design
   ============================================ */

:root {
    --primary-gradient: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #1e3a5f 100%);
    --accent-gradient: linear-gradient(135deg, #c41e3a 0%, #e63946 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-primary: #1e3a5f;
    --text-secondary: #5a6c7d;
    --shadow-soft: 0 8px 32px rgba(30, 58, 95, 0.15);
    --shadow-strong: 0 20px 60px rgba(30, 58, 95, 0.25);
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --main-font: 'Titillium Web', sans-serif;
    --second-font: 'Titillium Web', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--main-font);
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Decorative Shapes - Static */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Top right large circle */
        radial-gradient(circle 400px at 90% -10%, rgba(255, 255, 255, 0.03) 0%, transparent 70%),
        /* Bottom left large circle */
        radial-gradient(circle 350px at -5% 105%, rgba(255, 255, 255, 0.04) 0%, transparent 70%),
        /* Center top soft glow */
        radial-gradient(ellipse 300px 200px at 50% 5%, rgba(255, 255, 255, 0.02) 0%, transparent 70%),
        /* Small accent circle top left */
        radial-gradient(circle 120px at 15% 20%, rgba(196, 30, 58, 0.05) 0%, transparent 70%),
        /* Small accent circle bottom right */
        radial-gradient(circle 150px at 85% 75%, rgba(45, 90, 135, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Additional geometric shapes */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Diagonal line effect top */
        linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.015) 40.5%, rgba(255, 255, 255, 0.015) 41%, transparent 41.5%),
        /* Diagonal line effect bottom */
        linear-gradient(135deg, transparent 60%, rgba(255, 255, 255, 0.01) 60.5%, rgba(255, 255, 255, 0.01) 61%, transparent 61.5%),
        /* Soft corner accent top-left */
        radial-gradient(ellipse 200px 300px at 0% 0%, rgba(255, 255, 255, 0.025) 0%, transparent 60%),
        /* Soft corner accent bottom-right */
        radial-gradient(ellipse 250px 350px at 100% 100%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Main Container */
.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Login Card */
.login-card {
    background: var(--glass-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    padding: 50px 45px;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--accent-gradient);
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 35px;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: var(--glass-bg);
    border-radius: 24px;
    box-shadow: 
        0 10px 30px rgba(30, 58, 95, 0.1),
        inset 0 -2px 5px rgba(0, 0, 0, 0.02);
    margin-bottom: 20px;
    transition: var(--transition);
}

.logo-container:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(30, 58, 95, 0.15);
}

.logo-container img {
    width: 100px;
    height: auto;
    object-fit: contain;
}

.logo-section h1 {
    color: var(--text-primary);
    font-size: 1.80rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.logo-section .subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
}

/* Login Buttons */
.login-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 30px;
}

.login-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 28px;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    overflow: hidden;
    letter-spacing: 0.3px;
}

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

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

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.login-btn:active {
    transform: translateY(-1px);
}

.login-btn .btn-icon {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

/* Button Variants */
.btn-edevlet {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
}

.btn-edevlet:hover {
    background: linear-gradient(135deg, #264a75 0%, #3a6b9a 100%);
}

.btn-mebbis {
    background: linear-gradient(135deg, #c41e3a 0%, #e63946 100%);
}

.btn-mebbis:hover {
    background: linear-gradient(135deg, #d42a48 0%, #f04552 100%);
}

.btn-idare {
    background: linear-gradient(135deg, #0d6efd 0%, #4d94ff 100%);
}

.btn-idare:hover {
    background: linear-gradient(135deg, #2680ff 0%, #5fa0ff 100%);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 28px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d0d7de, transparent);
}

.divider::before {
    margin-right: 16px;
}

.divider::after {
    margin-left: 16px;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease-out;
}

.alert-danger {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-left: 4px solid #dc3545;
    color: #721c24;
}

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

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7fc 100%);
    border-left: 4px solid #2d5a87;
    padding: 18px 20px;
    margin-top: 28px;
    border-radius: 0 12px 12px 0;
    animation: fadeIn 1s ease 0.5s both;
}

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

.info-box h6 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box h6 i {
    color: #2d5a87;
}

.info-box ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.info-box li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.info-box li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2d5a87;
    font-weight: bold;
}

.info-box li:last-child {
    margin-bottom: 0;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.login-footer p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}

.login-footer .org-name {
    font-weight: 600;
    color: var(--text-primary);
}

/* Loading State */
.login-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.login-btn.loading .btn-text {
    visibility: hidden;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablets and smaller */
@media (max-width: 768px) {
    body {
        padding: 15px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .login-card {
        padding: 40px 30px;
        border-radius: 16px;
    }

    .logo-container {
        width: 85px;
        height: 85px;
        border-radius: 20px;
    }

    .logo-container img {
        width: 55px;
    }

    .logo-section h1 {
        font-size: 1.4rem;
    }

    .logo-section .subtitle {
        font-size: 0.9rem;
    }

    .login-btn {
        padding: 16px 22px;
        font-size: 0.95rem;
    }

    .login-btn .btn-icon {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    body {
        padding: 10px;
        padding-top: 20px;
    }

    .login-wrapper {
        max-width: 100%;
    }

    .login-card {
        padding: 30px 20px;
        border-radius: 14px;
    }

    .logo-container {
        width: 75px;
        height: 75px;
        border-radius: 18px;
    }

    .logo-container img {
        width: 48px;
    }

    .logo-section h1 {
        font-size: 1.25rem;
    }

    .logo-section .subtitle {
        font-size: 0.85rem;
    }

    .login-btn {
        padding: 14px 18px;
        font-size: 0.9rem;
        border-radius: 12px;
        gap: 10px;
    }

    .login-btn .btn-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .divider {
        margin: 22px 0;
        font-size: 0.8rem;
    }

    .info-box {
        padding: 14px 16px;
        margin-top: 22px;
    }

    .info-box h6 {
        font-size: 0.85rem;
    }

    .info-box li {
        font-size: 0.8rem;
    }

    .login-footer p {
        font-size: 0.75rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .login-card {
        padding: 25px 16px;
    }

    .logo-section h1 {
        font-size: 1.1rem;
    }

    .login-btn {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    .login-btn .btn-text {
        font-size: 0.8rem;
    }
}

/* Landscape mode on mobile */
@media (max-height: 600px) and (orientation: landscape) {
    body {
        padding: 10px;
        align-items: flex-start;
    }

    .login-card {
        padding: 25px 30px;
    }

    .logo-section {
        margin-bottom: 20px;
    }

    .logo-container {
        width: 60px;
        height: 60px;
    }

    .logo-container img {
        width: 40px;
    }

    .logo-section h1 {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }

    .login-options {
        gap: 10px;
        margin-top: 20px;
    }

    .login-btn {
        padding: 12px 20px;
    }

    .divider {
        margin: 15px 0;
    }

    .info-box {
        margin-top: 15px;
        padding: 12px 15px;
    }

    .login-footer {
        margin-top: 15px;
        padding-top: 15px;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .login-card {
        border: 0.5px solid var(--glass-border);
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --glass-bg: rgba(30, 40, 55, 0.95);
        --text-primary: #e8edf2;
        --text-secondary: #9aa5b1;
    }
    
    .login-card {
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .info-box {
        background: linear-gradient(135deg, rgba(45, 90, 135, 0.2) 0%, rgba(30, 58, 95, 0.3) 100%);
    }
    
    .login-footer {
        border-top-color: rgba(255, 255, 255, 0.1);
    }
}

/* Bilgilendirme Modal */
.bilgilendirme-modal-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.55);
        z-index: 2000;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .bilgilendirme-modal-overlay.show {
        display: flex;
    }

    .bilgilendirme-modal {
        width: min(520px, 100%);
        background: white;
        border-radius: 14px;
        box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
        overflow: hidden;
    }

    .bilgilendirme-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 18px 22px;
        border-bottom: 1px solid #e5e7eb;
    }

    .bilgilendirme-modal-header h2 {
        color: #1f2937;
        font-size: 18px;
        font-weight: 700;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .bilgilendirme-modal-close {
        width: 34px;
        height: 34px;
        border: none;
        border-radius: 999px;
        background: #f3f4f6;
        color: #4b5563;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .bilgilendirme-modal-close:hover {
        background: #e5e7eb;
        color: #111827;
    }

    .bilgilendirme-modal-body {
        padding: 22px;
        color: #374151;
        font-size: 18px;
        line-height: 1.75;
        text-align: justify;
    }

    .bilgilendirme-modal-footer {
        display: flex;
        justify-content: flex-end;
        padding: 16px 22px 20px;
        border-top: 1px solid #e5e7eb;
    }

    .bilgilendirme-modal-button {
        border: none;
        border-radius: 8px;
        background: #2563eb;
        color: white;
        padding: 10px 20px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .bilgilendirme-modal-button:hover {
        background: #1d4ed8;
        transform: translateY(-1px);
    }

