/* Login Desktop CSS - Temiz ve Modern Tasarım */

* {
    box-sizing: border-box;
}

/* Desktop için body stilleri - Sadece büyük ekranlarda geçerli */
@media (min-width: 769px) {
    body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        margin: 0;
        padding: 0;
        background: linear-gradient(135deg, #1a237e 0%, #283593 30%, #c62828 70%, #d32f2f 100%);
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow-x: hidden;
    }
}

/* Arka plan animasyonlu ikonlar - Desktop için */
@media (min-width: 769px) {
    .login-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 0.12;
        background-image: 
            url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFD700"><path d="M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z"/></svg>'),
            url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFD700"><path d="M12 3L1 9l4 2.18v6L12 21l7-3.82v-6l2-1.09V17h2V9L12 3zm6.82 6L12 12.72 5.18 9 12 5.28 18.82 9zM17 16l-5 2.72L7 16v-3.73L12 15l5-2.73V16z"/></svg>'),
            url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFD700"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>'),
            url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFD700"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"/></svg>');
        background-size: 100px 100px, 80px 80px, 90px 90px, 85px 85px;
        background-position: 5% 15%, 85% 25%, 15% 75%, 90% 70%;
        background-repeat: no-repeat;
        animation: floatIcons 25s ease-in-out infinite;
        pointer-events: none;
    }
}

@keyframes floatIcons {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(40px, -40px) rotate(8deg); }
    50% { transform: translate(-30px, 30px) rotate(-8deg); }
    75% { transform: translate(30px, 40px) rotate(5deg); }
}

/* Desktop için container ve card stilleri */
@media (min-width: 769px) {
    .login-container {
        position: relative;
        width: 100%;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .login-card {
        background: white;
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        width: 100%;
        max-width: 450px;
        animation: fadeInUp 0.5s ease-out;
        overflow: hidden;
    }

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

    .login-header {
        text-align: center;
        padding: 20px 25px 18px 25px;
        background: white;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
    }

    .btn-help-icon {
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        border: none !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
        z-index: 1000 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .btn-help-icon:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    }

    .btn-help-icon i {
        font-size: 20px !important;
        display: inline-block !important;
        font-family: 'Pe-icon-7-stroke' !important;
        font-style: normal !important;
        font-weight: normal !important;
        text-decoration: inherit !important;
        text-transform: none !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        line-height: 1 !important;
        width: auto !important;
        height: auto !important;
    }

    .login-header img {
        width: 240px;
        height: 70px;
        margin-bottom: 10px;
        object-fit: contain;
    }

    .login-title {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin: 0;
    }

    .login-tabs {
        display: flex;
        border-bottom: 2px solid #e8e8e8;
        background: white;
    }

    .login-tab {
        flex: 1;
        padding: 16px 12px;
        text-align: center;
        cursor: pointer;
        background: white;
        border: none;
        font-size: 15px;
        font-weight: 600;
        color: #888;
        transition: all 0.3s ease;
        position: relative;
    }

    .login-tab.active {
        color: #667eea;
    }

    .login-tab.active::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        right: 0;
        height: 3px;
        background: #667eea;
    }

    .login-tab:hover {
        color: #667eea;
        background: #f8f9fa;
    }

    .tab-content {
        display: none;
        padding: 20px 25px;
        animation: fadeIn 0.3s ease;
    }

    .tab-content.active {
        display: flex;
        flex-direction: column;
    }

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

    .form-group-modern {
        margin-bottom: 16px;
        position: relative;
    }

    .form-group-modern label {
        font-size: 13px;
        font-weight: 600;
        color: #555;
        margin-bottom: 8px;
        display: block;
    }

    .form-control-modern {
        width: 100%;
        padding: 12px 14px;
        font-size: 14px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        transition: all 0.2s ease;
        background-color: #fafafa;
        min-height: 44px;
        box-sizing: border-box;
    }

    .form-control-modern:focus {
        border-color: #667eea;
        background-color: white;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        outline: none;
    }

    .input-group-modern {
        display: flex;
        align-items: stretch;
        gap: 0;
    }

    .input-group-modern .form-control-modern {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        flex: 1;
        border-right: none;
    }

    .input-group-addon-modern {
        padding: 12px 10px;
        background-color: #667eea;
        color: white;
        border: 2px solid #667eea;
        border-left: none;
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
        font-weight: 600;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 44px;
        box-sizing: border-box;
    }

    .security-code-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 12px;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .security-code-container:hover {
        border-color: #667eea;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    }

    .security-code-container img {
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        width: 100px;
        height: 40px;
        object-fit: cover;
        cursor: pointer;
        transition: transform 0.2s ease;
        flex-shrink: 0;
    }

    .security-code-container img:hover {
        transform: scale(1.05);
    }

    .btn-refresh-captcha {
        position: absolute;
        top: -12px;
        right: -8px;
        width: 32px;
        height: 32px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: 2px solid white;
        border-radius: 50%;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
        transition: all 0.3s ease;
        padding: 0;
        z-index: 10;
    }

    .btn-refresh-captcha:hover {
        transform: scale(1.1) rotate(90deg);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    }

    .btn-refresh-captcha:active {
        transform: scale(0.95) rotate(90deg);
    }

    .btn-refresh-captcha i {
        font-size: 16px;
        line-height: 1;
        display: inline-block;
        transition: transform 0.3s ease;
    }

    .btn-refresh-captcha:hover i {
        transform: rotate(180deg);
    }

    .security-code-input-wrapper {
        flex: 1;
    }

    .security-code-input-wrapper .form-control-modern {
        margin: 0;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 2px;
        text-align: center;
        text-transform: uppercase;
        padding: 10px 12px;
        min-height: 44px;
    }

    .btn-login-modern {
        width: 100%;
        padding: 14px;
        font-size: 15px;
        font-weight: 700;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
        border-radius: 10px;
        color: white;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        margin-top: 10px;
        min-height: 48px;
    }

    .btn-login-modern:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    }

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

    .edevlet-container {
        text-align: center;
        padding: 20px;
        background: white;
        border-radius: 6px;
    }

    .edevlet-container a {
        display: inline-block;
        transition: transform 0.2s ease;
    }

    .edevlet-container a:hover {
        transform: scale(1.02);
    }

    .edevlet-container img {
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    .login-links {
        text-align: center;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #e8e8e8;
    }

    .login-links a {
        color: #667eea;
        text-decoration: none;
        font-weight: 500;
        font-size: 12px;
        transition: color 0.2s ease;
    }

    .login-links a:hover {
        color: #764ba2;
        text-decoration: underline;
    }

    .help-info {
        color: #888;
        font-size: 11px;
        margin-top: 6px;
    }

    .alert-modern {
        border-radius: 6px;
        padding: 10px;
        margin: 10px 0;
        border-left: 3px solid;
        font-size: 13px;
    }

    .alert-danger-modern {
        background-color: #fff5f5;
        border-color: #fc8181;
        color: #c53030;
    }

    /* Modal Stilleri */
    .modal-dialog {
        padding: 0 !important;
        margin: 30px auto !important;
    }

    .modal-content {
        overflow: hidden !important;
        border-radius: 16px !important;
        border: none !important;
    }

    .modal-header {
        overflow: hidden !important;
        border-radius: 16px 16px 0 0 !important;
    }

    .modal-footer {
        overflow: hidden !important;
        border-radius: 0 0 16px 16px !important;
    }

    .modal-body {
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .modal-backdrop {
        background-color: rgba(0, 0, 0, 0.5) !important;
    }

    /* Portal Yardım Modal */
    .btn-help-modern {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        padding: 14px 35px;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        transition: all 0.3s ease;
        cursor: pointer;
        position: relative;
        z-index: 1000 !important;
    }

    .btn-help-modern:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5) !important;
    }

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

    .help-list-modern {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .help-item-modern {
        display: flex;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
        border-left: 4px solid transparent;
    }

    .help-item-modern:hover {
        transform: translateX(5px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
        border-left-color: #667eea;
    }

    .help-icon-modern {
        flex-shrink: 0;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .help-item-modern:hover .help-icon-modern {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transform: scale(1.1);
    }

    .help-item-modern:hover .help-icon-modern i {
        color: white !important;
    }

    .help-content-modern {
        flex: 1;
    }

    .help-link-modern {
        display: inline-flex;
        align-items: center;
        margin-top: 10px;
        color: #667eea;
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        transition: all 0.2s ease;
    }

    .help-link-modern:hover {
        color: #764ba2;
        text-decoration: underline;
    }

    .help-link-modern i {
        transition: transform 0.2s ease;
    }

    .help-link-modern:hover i {
        transform: translateX(3px);
    }

    /* Help Modal - Temaya Uygun */
    .help-modal-dialog {
        max-width: 700px !important;
        margin: 30px auto !important;
    }

    .help-modal-content {
        border-radius: 16px !important;
        border: none !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        overflow: hidden !important;
    }

    .help-modal-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        border-bottom: none !important;
        padding: 20px 24px !important;
        border-radius: 16px 16px 0 0 !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .help-modal-header .modal-title {
        color: white !important;
        font-size: 20px !important;
        font-weight: 600 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        flex: 1 !important;
    }

    .help-modal-header .modal-title i {
        font-size: 24px !important;
    }

    .help-modal-header .close {
        color: white !important;
        opacity: 0.9 !important;
        font-size: 28px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        float: none !important;
        align-self: center !important;
    }

    .help-modal-header .close:hover {
        opacity: 1 !important;
    }

    .help-modal-content .modal-body {
        padding: 24px !important;
        background: white !important;
        max-height: 70vh;
        overflow-y: auto;
    }

    .help-modal-content .modal-footer {
        padding: 16px 24px !important;
        border-top: 1px solid #e8e8e8 !important;
        background: #f8f9fa !important;
        border-radius: 0 0 16px 16px !important;
    }

    /* Info Modal - Küçük ve Temaya Uygun */
    .info-modal-dialog {
        max-width: 500px !important;
        margin: 30px auto !important;
    }

    .info-modal-content {
        border-radius: 16px !important;
        border: none !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        overflow: hidden !important;
    }

    .info-modal-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        border-bottom: none !important;
        padding: 18px 24px !important;
        border-radius: 16px 16px 0 0 !important;
    }

    .info-modal-header .modal-title {
        color: white !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .info-modal-header .modal-title i {
        font-size: 22px !important;
    }

    .info-modal-body {
        padding: 24px !important;
        background: white !important;
    }

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

    .info-modal-logo img {
        width: 140px;
        height: auto;
        max-height: 40px;
    }

    .info-modal-text {
        background: #f8f9fa;
        padding: 18px;
        border-radius: 10px;
        border-left: 4px solid #667eea;
        margin-bottom: 16px;
    }

    .info-modal-text p {
        font-size: 13px;
        line-height: 1.7;
        color: #333;
        margin: 0 0 12px 0;
        text-align: justify;
    }

    .info-modal-text p:last-child {
        margin-bottom: 0;
    }

    .info-modal-text .info-date {
        color: #d9534f;
        font-weight: 700;
    }

    .info-modal-text .info-edevlet {
        color: #667eea;
        font-weight: 600;
    }

    .info-modal-signature {
        text-align: right;
        padding-top: 12px;
        border-top: 1px solid #e8e8e8;
        font-size: 12px;
        color: #666;
    }

    .info-modal-signature strong {
        color: #667eea;
        display: block;
        margin-bottom: 4px;
    }

    .info-modal-signature small {
        color: #888;
        font-style: italic;
    }

    .info-modal-footer {
        padding: 16px 24px !important;
        border-top: 1px solid #e8e8e8 !important;
        background: #f8f9fa !important;
        border-radius: 0 0 16px 16px !important;
        text-align: center !important;
    }

    .btn-info-accept {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        border: none !important;
        padding: 10px 24px !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
    }

    .btn-info-accept:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    }

    .btn-info-accept:active {
        transform: translateY(0) !important;
    }
}

/* Modern Footer - Login Sayfası */
.footer-modern {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #c62828 100%);
    padding: 12px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    opacity: 0.9;
}

.footer-link:hover {
    color: white;
    opacity: 1;
    text-decoration: underline;
    transform: translateY(-1px);
}

/* Floating Icons - Desktop için */
@media (min-width: 769px) {
    .floating-icon {
        position: absolute;
        opacity: 0.15;
        animation: float 18s ease-in-out infinite;
        pointer-events: none;
    }

    .floating-icon svg {
        width: 70px;
        height: 70px;
        fill: #FFD700;
    }

    .floating-icon:nth-child(1) {
        top: 8%;
        left: 8%;
        animation-delay: 0s;
    }

    .floating-icon:nth-child(2) {
        top: 18%;
        right: 12%;
        animation-delay: 3s;
    }

    .floating-icon:nth-child(3) {
        bottom: 18%;
        left: 15%;
        animation-delay: 6s;
    }

    .floating-icon:nth-child(4) {
        bottom: 12%;
        right: 8%;
        animation-delay: 9s;
    }

    .floating-icon:nth-child(5) {
        top: 48%;
        left: 3%;
        animation-delay: 12s;
    }

    .floating-icon:nth-child(6) {
        top: 58%;
        right: 3%;
        animation-delay: 15s;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(35px, -35px) rotate(120deg) scale(1.15);
    }
    66% {
        transform: translate(-35px, 35px) rotate(240deg) scale(0.85);
    }
}

