﻿/* ✅ CANDIDATE LOGIN PAGE STYLES */

/* ✅ DBE COLOR VARIABLES */
:root {
    --dbe-red-primary: #7a0f18;
    --dbe-red-secondary: #9b131e;
    --dbe-red-dark: #5d0000;
    --dbe-red-light: #a91b2b;
}

/* ✅ COPYRIGHT SECTION STYLES - Minimal and aesthetically pleasing */
.copyright-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(229, 231, 235, 0.6);
}

.copyright-text {
    text-align: center;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.4;
}

.copyright-year {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    letter-spacing: 0.025em;
}

.copyright-notice {
    font-size: 9px;
    font-weight: 400;
    color: #6b7280;
    margin-bottom: 6px;
    line-height: 1.5;
}

.copyright-warning {
    font-size: 9px;
    font-weight: 400;
    color: #9ca3af;
    margin-bottom: 8px;
    font-style: italic;
}

.copyright-website {
    font-size: 10px;
    margin-top: 8px;
}

    .copyright-website a {
        color: #667eea;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
        letter-spacing: 0.025em;
    }

        .copyright-website a:hover {
            color: #5a6fd8;
            text-decoration: underline;
        }

/* ✅ Responsive adjustments for mobile */
@media (max-width: 640px) {
    .copyright-section {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .copyright-year {
        font-size: 10px;
    }

    .copyright-notice {
        font-size: 8px;
    }

    .copyright-warning {
        font-size: 8px;
    }

    .copyright-website {
        font-size: 9px;
    }
}

/* ✅ BACKGROUND - Tek path, dark yok - GÜÇLÜ FALLBACK */
.page-bg {
    /* ✅ Tam ekran background */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* ✅ GÜÇLÜ FALLBACK GRADIENT - Her zaman görünür */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /* ✅ Tek background image path - SADECE BU PATH KULLANILACAK */
    background-image: url('/media/images/bg-9.png');
    /* ✅ Background ayarları */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* ✅ Layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    z-index: 0;
}

    /* ✅ GÜÇLÜ FALLBACK - Eğer image yüklenemezse */
   /* .page-bg::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.98) 0%, rgba(118, 75, 162, 0.98) 20%, rgba(156, 39, 176, 0.98) 40%, rgba(233, 30, 99, 0.98) 60%, rgba(244, 67, 54, 0.98) 80%, rgba(255, 152, 0, 0.98) 100%);
        z-index: -2;
        animation: gradientShift 15s ease-in-out infinite;
    }*/

/* ✅ Animated gradient fallback */
@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 25%, rgba(156, 39, 176, 0.95) 50%, rgba(233, 30, 99, 0.95) 75%, rgba(244, 67, 54, 0.95) 100%);
    }

    33% {
        background: linear-gradient(135deg, rgba(63, 81, 181, 0.95) 0%, rgba(103, 58, 183, 0.95) 25%, rgba(156, 39, 176, 0.95) 50%, rgba(233, 30, 99, 0.95) 75%, rgba(255, 87, 34, 0.95) 100%);
    }

    66% {
        background: linear-gradient(135deg, rgba(33, 150, 243, 0.95) 0%, rgba(76, 175, 80, 0.95) 25%, rgba(255, 193, 7, 0.95) 50%, rgba(255, 152, 0, 0.95) 75%, rgba(255, 87, 34, 0.95) 100%);
    }
}

/* ✅ Pattern overlay - texture efekti */
.page-bg::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.08) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 30%), linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.03) 50%, transparent 60%);
    z-index: -1;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-10px, -10px) rotate(90deg);
    }

    50% {
        transform: translate(10px, -10px) rotate(180deg);
    }

    75% {
        transform: translate(10px, 10px) rotate(270deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* ✅ BODY STYLES - Tam ekran için düzeltme */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100vw;
    font-size: 14px;
    overflow-x: hidden;
}

/* ✅ LOGO POSITIONING - Form üstünde ve daha büyük */
.company-logo {
    position: relative;
    display: block;
    margin: 0 auto 20px auto;
    max-width: 200px;
    height: auto;
    z-index: 10;
}

/* ✅ LOGO FALLBACK IF IMAGE DOESN'T LOAD */
.company-logo-fallback {
    position: relative;
    display: none;
    margin: 0 auto 20px auto;
    width: 140px;
    height: 50px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--dbe-red-primary);
    font-size: 20px;
    letter-spacing: 2px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ✅ MAIN CARD DESIGN - Z-index eklendi */
.kt-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto;
    min-height: auto;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    z-index: 5;
    position: relative;
}

.kt-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ✅ INPUT STYLES */
.kt-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

    .kt-input:focus {
        border-color: var(--dbe-red-primary);
        box-shadow: 0 0 0 2px rgba(122, 15, 24, 0.15);
        outline: none;
        background: #ffffff;
    }

    .kt-input.error {
        border-color: #dc2626;
        box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
    }

/* ✅ BUTTON STYLES - DBE Kırmızısı */
.kt-btn {
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 42px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kt-btn-primary {
    background: linear-gradient(135deg, var(--dbe-red-primary) 0%, var(--dbe-red-secondary) 35%, var(--dbe-red-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(122, 15, 24, 0.3);
    border: 1px solid rgba(122, 15, 24, 0.2);
    transform: translateY(0);
}

    .kt-btn-primary::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;
        z-index: 1;
        opacity: 0;
    }

    .kt-btn-primary:hover:not(:disabled):not(.btn-loading) {
        background: linear-gradient(135deg, var(--dbe-red-light) 0%, var(--dbe-red-primary) 35%, var(--dbe-red-secondary) 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(122, 15, 24, 0.4);
    }

        .kt-btn-primary:hover:not(:disabled):not(.btn-loading)::before {
            left: 100%;
            opacity: 1;
        }

    .kt-btn-primary:active:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 3px 12px rgba(122, 15, 24, 0.5);
        transition: all 0.1s ease;
    }

    .kt-btn-primary:disabled,
    .kt-btn-primary.btn-loading {
        background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%) !important;
        cursor: not-allowed;
        transform: translateY(0) !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
        pointer-events: none;
    }

        .kt-btn-primary:disabled::before,
        .kt-btn-primary.btn-loading::before {
            display: none !important;
        }

/* ✅ FORM LABELS */
.kt-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 14px;
    color: #374151;
    letter-spacing: 0.025em;
    text-align: center;
}

/* ✅ VALIDATION STYLES */
.validation-error {
    color: var(--dbe-red-primary);
    font-size: 13px;
    margin-top: 0.5rem;
    display: block;
    text-align: center;
}

.validation-summary {
    background-color: #fef2f2;
    border: 1px solid rgba(122, 15, 24, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

    .validation-summary ul {
        margin: 0;
        padding-left: 1.25rem;
        color: var(--dbe-red-primary);
        font-size: 13px;
    }

/* ✅ LOADING ANIMATION */
.btn-loading {
    position: relative;
    color: transparent !important;
}

    .btn-loading::after {
        content: "";
        position: absolute;
        width: 16px;
        height: 16px;
        top: 50%;
        left: 50%;
        margin-left: -8px;
        margin-top: -8px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        border-top-color: #ffffff;
        animation: button-loading-spinner 1s ease infinite;
        z-index: 2;
    }

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

/* ✅ UTILITY CLASSES */
.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.text-sm {
    font-size: 13px;
}

.text-xs {
    font-size: 11px;
}

.text-red-500 {
    color: var(--dbe-red-primary);
}

.mb-2\.5 {
    margin-bottom: 0.625rem;
}

.me-1\.5 {
    margin-right: 0.375rem;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.grow {
    flex-grow: 1;
}

.w-full {
    width: 100%;
}

.min-h-screen {
    min-height: 100vh;
}

.border-t {
    border-top: 1px solid #e5e7eb;
}

.uppercase {
    text-transform: uppercase;
}

.font-medium {
    font-weight: 500;
}

.font-light {
    font-weight: 300;
}

.shrink-0 {
    flex-shrink: 0;
}

/* ✅ TYPOGRAPHY */
.corporate-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    letter-spacing: 0.025em;
}

.corporate-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
}

.divider-text {
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: 0.1em;
    padding: 0 12px;
    white-space: nowrap;
}

.footer-text {
    font-size: 11px;
    line-height: 1.4;
    color: #6b7280;
}

/* ✅ CODE INPUT STYLES */
.code-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    margin: 1rem 0;
    font-size: 13px;
    color: #64748b;
    text-align: center;
    line-height: 1.4;
}

/* ✅ LANGUAGE SELECTOR */
.language-selector-container {
    padding: 0 1.5rem !important;
    margin: 1rem 0;
}

    .language-selector-container select {
        width: calc(100% - 1rem) !important;
        margin: 0 0.5rem !important;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 6px;
        box-sizing: border-box;
    }

/* ✅ RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .page-bg {
        padding: 15px;
        background-size: cover;
        background-position: center;
        background-attachment: scroll; /* Mobilde performance için */
    }

    .company-logo {
        max-width: 150px;
        margin-bottom: 15px;
    }

    .company-logo-fallback {
        width: 120px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 15px;
    }

    .kt-card {
        max-width: 100%;
        margin: 0;
        border-radius: 8px;
    }

    .kt-card-content {
        padding: 1.25rem;
        gap: 0.75rem;
    }

    .corporate-title {
        font-size: 16px;
    }

    .corporate-subtitle {
        font-size: 12px;
    }

    .code-info {
        padding: 10px;
        margin: 0.75rem 0;
        font-size: 12px;
    }

    .kt-btn {
        padding: 9px 14px;
        font-size: 14px;
        min-height: 40px;
    }

    .language-selector-container {
        padding: 0 1rem !important;
    }
}

@media (max-width: 480px) {
    .page-bg {
        padding: 10px;
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
    }

    .company-logo {
        max-width: 120px;
        margin-bottom: 12px;
    }

    .company-logo-fallback {
        width: 100px;
        height: 35px;
        font-size: 16px;
        margin-bottom: 12px;
    }

    .kt-card {
        border-radius: 6px;
        max-height: calc(100vh - 20px);
    }

    .kt-card-content {
        padding: 1rem;
        gap: 0.5rem;
    }

    .corporate-title {
        font-size: 15px;
        margin-bottom: 0.25rem;
    }

    .corporate-subtitle {
        font-size: 11px;
    }

    .kt-input {
        font-size: 16px;
        padding: 10px 12px;
    }

    .kt-btn {
        padding: 8px 12px;
        font-size: 14px;
        min-height: 38px;
        letter-spacing: 0.5px;
    }

    .divider-text {
        font-size: 10px;
        padding: 0 8px;
    }

    .code-info {
        padding: 8px;
        margin: 0.5rem 0;
        font-size: 11px;
        line-height: 1.3;
    }

    .language-selector-container {
        padding: 0 1.25rem !important;
    }

        .language-selector-container select {
            width: calc(100% - 0.5rem) !important;
            margin: 0 0.25rem !important;
            padding: 12px 16px;
            font-size: 14px;
        }
}

/* ✅ Çok küçük ekranlar için */
@media (max-width: 320px) {
    .page-bg {
        padding: 5px;
        background-attachment: scroll;
    }

    .company-logo {
        max-width: 100px;
        margin-bottom: 10px;
    }

    .company-logo-fallback {
        width: 80px;
        height: 30px;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .kt-card-content {
        padding: 0.75rem;
    }

    .corporate-title {
        font-size: 14px;
    }

    .kt-form-label {
        font-size: 13px;
    }

    .kt-btn {
        padding: 7px 10px;
        font-size: 13px;
        min-height: 36px;
    }

    .language-selector-container {
        padding: 0 1rem !important;
    }

        .language-selector-container select {
            padding: 10px 12px;
            font-size: 13px;
            width: calc(100% - 0.25rem) !important;
            margin: 0 0.125rem !important;
        }
}

/* ✅ Landscape mode için */
@media (max-height: 500px) and (orientation: landscape) {
    .page-bg {
        padding: 10px;
        background-attachment: scroll;
        justify-content: flex-start;
        padding-top: 20px;
    }

    .kt-card {
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }

    .company-logo {
        max-width: 100px;
        margin-bottom: 8px;
    }

    .company-logo-fallback {
        width: 80px;
        height: 30px;
        font-size: 14px;
        margin-bottom: 8px;
    }
}

/* ✅ Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .kt-btn-primary:hover {
        background: linear-gradient(135deg, var(--dbe-red-primary) 0%, var(--dbe-red-secondary) 35%, var(--dbe-red-dark) 100%) !important;
        transform: translateY(0) !important;
        box-shadow: 0 4px 15px rgba(122, 15, 24, 0.3) !important;
    }

        .kt-btn-primary:hover::before {
            opacity: 0 !important;
            left: -100% !important;
        }

    .page-bg::after {
        animation: none;
    }

    .page-bg::before {
        animation: none;
    }
}

/* ✅ Focus styling */
.kt-btn-primary:focus-visible {
    outline: 2px solid var(--dbe-red-light);
    outline-offset: 2px;
}

.kt-btn-primary:focus:not(:focus-visible) {
    outline: none;
    animation: none;
}

/* ✅ Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .page-bg {
        background-attachment: scroll;
    }

        .page-bg::before {
            animation: none !important;
        }

        .page-bg::after {
            animation: none !important;
        }

    .kt-btn-primary::before {
        transition: none;
    }

    .kt-btn {
        transition: none;
    }
}

/* ✅ Browser compatibility */
@supports not (backdrop-filter: blur(10px)) {
    .kt-card {
        background: rgba(255, 255, 255, 0.98);
    }

    .company-logo-fallback {
        background: rgba(255, 255, 255, 0.95);
    }
}

/* ✅ Print styles */
@media print {
    .page-bg {
        background: white !important;
        background-image: none !important;
    }

        .page-bg::before,
        .page-bg::after {
            display: none !important;
        }
}
