/* Tema Renkleri - CSS Variables */
:root {
    --color-semantic-warning-one: #9e6300;
    --color-semantic-success-one: #005937;
    --color-semantic-success-two: #008250;
    --color-semantic-error-one: #7d0017;
    --color-semantic-error-two: #da0027;
    --color-button-primary-disabled: #c4cfdc;
    --color-banners-warning-buttons: #fbefda;
    --color-banners-success-buttons: #dff8f0;
    --color-banners-info-buttons: #e2f1f9;
    --color-charts-purple: #7363e8;
    --color-surface-purple: #f6eff8;
    --color-primitive-white: #ffffff;
    --color-surface-green: #eff8f7;
    --color-surface-yellow: #fff5e3;
    --color-surface-components: #f2f5f7;
    --color-surface-blue-one: #e0ebf0;
    --color-text-subdued: #69778c;
    --color-text-base: #002b52;
    --color-interaction: #006dd1;
    --color-semantic-info-three: #ebf8ff;
    --color-semantic-warning-three: #fff5e3;
    --color-semantic-success-three: #e8fff6;
    --color-semantic-error-three: #ffebee;
    --color-button-small-background: #EBF4FD;
    --skeleton: #F0F0F0;
    --color-primitive-black: #000000;
    --color-surface-gold: #f7f3e9;
    --color-brand-primary-one: #002853;
    --color-primitive-grey-three: #cccccc;
    --color-surface-blue-two: var(--color-brand-primary-three);
    --color-border: var(--color-primitive-grey-three);
    --color-segment-gold-three: var(--color-surface-gold);
    --color-surface-raised: var(--color-primitive-white);
    --color-button-primary-background: var(--color-brand-primary-one);
    --color-background: var(--color-primitive-white);
    --color-banners-warning-bg: var(--color-semantic-warning-three);
    --color-banners-error-bg: var(--color-semantic-error-three);
    --color-banners-success-bg: var(--color-semantic-success-three);
    --color-banners-info-bg: var(--color-semantic-info-three);
    --color-segment-diamond-three: var(--color-surface-components);
    --color-inputs-background: var(--color-surface-components);
    --color-button-secondary-text: var(--color-interaction);
    --color-button-secondary-border: var(--color-interaction);
    --color-text-white: var(--color-primitive-white);
    --color-segment-mass-two: var(--color-surface-blue-two);
    --color-button-primary-text: var(--color-text-white);
    --color-segment-surface: var(--color-segment-mass-two);
    --color-button-small-text: var(--color-interaction);
    --color-surface-private-one: var(--color-primitive-black);
    --shadow-level-one: 0px 5px 15px 0px #E4EDF4;
}

/* Disable zoom on mobile devices */
* {
    touch-action: manipulation;
}

@font-face {
    font-family: 'BlissPro';
    src: url('Font/blisspro_medium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BlissPro';
    src: url('Font/blisspro_mediumitalic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'BlissPro';
    src: url('Font/blisspro_heavy.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'BlissPro';
    src: url('Font/blisspro_heavyitalic.otf') format('opentype');
    font-weight: bold;
    font-style: italic;
}

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

body {
    font-family: 'BlissPro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-base);
    line-height: 1.6;
}

.status-bar {
    height: 54px;
    background-color: var(--color-brand-primary-one);
}

.header {
    padding: 20px;
    background-color: #ffffff;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.logo-icon {
    width: 100px;
}

.logo-icon img {
    width: 100%;
    height: auto;
}

.language-selector {
    position: relative;
    color: var(--color-text-base);
    font-size: 16px;
    font-weight: 600;
}

.language-current {
    display: flex;
    align-items: center;
    gap: 1px;
    cursor: pointer;
    padding: 8px 7px;
    border: none;
    border-radius: 8px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    justify-content: space-between;
}

.language-current:hover {
    border-color: var(--color-interaction);
}

.language-current i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    min-width: 210px;
    background-color: #ffffff;
    border: 1px solid #d1d5db63;
    border-radius: 2px;
    z-index: 9999;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-selector.open .language-current i {
    transform: rotate(180deg);
}

.language-option {
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #f3f4f6;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: #f8fafc;
}

.language-option span {
    font-weight: 600;
    color: var(--color-text-base);
}

/* RTL Support */
body[dir="rtl"] {
    direction: rtl;
    text-align: right;
    height: 100vh;
}

body[dir="rtl"] .logo-section {
    flex-direction: row;
    justify-content: space-between;
}

body[dir="rtl"] .logo-icon {
    order: 1;
}

body[dir="rtl"] .language-selector {
    order: 2;
}

body[dir="rtl"] .mpin-inputs {
    flex-direction: row-reverse;
}

body[dir="rtl"] .footer-links {
    direction: rtl;
}

body[dir="rtl"] .copyright {
    text-align: right;
}

body[dir="rtl"] .forget-mpin {
    text-align: left;
}

/* RTL Support for Language Selector */
body[dir="rtl"] .language-dropdown {
    left: 0 !important;
}
body[dir="ltr"] .language-dropdown {
    right: 0 !important;
}

body[dir="rtl"] .language-current {
    flex-direction: row-reverse;
    text-align: right;
}

body[dir="rtl"] .language-current i {
    margin-left: 0;
    margin-right: 8px;
}

body[dir="rtl"] .language-option {
    text-align: right;
}

body[dir="rtl"] .language-option span {
    direction: rtl;
}

.main-content {
    padding: 0 20px;
}

.welcome-message {
    margin-bottom: 40px;
}

.welcome-text {
    font-size: 20px;
    font-weight: 500;
    line-height: 26px;
    color: var(--color-text-base);
    margin-bottom: 11px;
}

.not-you {
    color: var(--color-text-base);
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
}

.mpin-section {
    margin-bottom: 40px;
}

.mpin-label {
    font-size: 16px;
    color: var(--color-text-base);
    margin-bottom: 15px;
}

.mpin-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.mpin-input {
    width: 46px;
    height: 46px;
    border: 1px solid var(--color-border);
    border-radius: 15px;
    background-color: var(--color-inputs-background);
    text-align: center;
    font-size: 35px;
    color: var(--color-text-base);
    /* Hızlı nokta dönüşümü için özel karakter */
    font-family: 'Courier New', monospace;
    font-weight: bold;
    /* Hızlı dönüşüm için */
    transition: none;
    -webkit-transition: none;
    -moz-transition: none;
    -ms-transition: none;
    -o-transition: none;
}

.mpin-input:focus {
    outline: none;
    border-color: var(--color-interaction);
}

.forget-mpin {
    color: var(--color-text-base);
    text-decoration: none;
    cursor: pointer;
    font-size: 13px;
    margin-left: 8px;
    text-align: right;
}

.face-id-section {
    text-align: center;
    margin-bottom: 40px;
}

.face-id-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.face-id-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.face-id-text {
    color: var(--color-text-base);
    font-size: 15px;
}

.action-button {
    width: 100%;
    padding: 14px;
    background-color: var(--color-primitive-white);
    border: 1px solid var(--color-interaction);
    border-radius: 12px;
    color: var(--color-interaction);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 60px;
}

.action-button:hover {
    background-color: var(--color-surface-components);
}

.footer {
    padding: 20px;
    background-color: #ffffff;
    position: absolute;
    bottom: 0;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-row {
    display: flex;
    margin-bottom: 20px;
}

.footer-row:last-child {
    margin-bottom: 0;
}

.footer-col {
    flex: 1;
}

.footer-link {
    color: var(--color-interaction);
    text-decoration: none;
    text-align: left;
    font-size: 14px;
    white-space: nowrap;
}

.footer-link:hover {
    text-decoration: underline;
}

.copyright {
    color: var(--color-text-subdued);
    font-size: 12px;
    text-align: left;
    line-height: 1.4;
    margin-bottom: 20px;
}

.home-indicator {
    height: 5px;
    background-color: var(--color-primitive-black);
    border-radius: 3px;
    width: 134px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .mpin-inputs {
        display: flex;
        justify-content: space-between;
    }
    
    .footer-row {
        gap: 20px;
    }
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #87CEEB, #1E90FF);
    mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 0);
    animation: spin 3s linear infinite, zoomInOut 5s ease-in-out infinite;
}

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

@keyframes zoomInOut {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
    }
    25% { 
        transform: scale(1.2) rotate(90deg); 
    }
    50% { 
        transform: scale(0.8) rotate(180deg); 
    }
    75% { 
        transform: scale(1.1) rotate(270deg); 
    }
}

/* Error States */
.mpin-input.error {
    border-color: var(--color-semantic-error-two) !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* MPIN Input Focus Styles */
.mpin-input:focus {
    outline: none;
    border-color: var(--color-interaction);
    box-shadow: 0 0 0 3px rgba(0, 109, 209, 0.1);
}

.mpin-input.error:focus {
    border-color: var(--color-semantic-error-two);
    box-shadow: 0 0 0 3px rgba(218, 0, 39, 0.1);
}

/* Face ID Notification */
.face-id-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.face-id-notification.show {
    opacity: 1;
    visibility: visible;
}

/* Splash Screen Styles */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ececec;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    overflow: hidden;
}

.splash-logo-container {
    position: relative;
    width: 200px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.splash-logo-right {
    position: absolute;
    width: 110px;
    height: auto;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%) translateY(100vh);
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.splash-logo-left {
    position: absolute;
    width: 180px;
    height: auto;
    top: 50%;
    left: -30px;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.8s ease-in-out;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Bounce in animation for right logo */
.splash-logo-right.bounce-in {
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* Move right animation */
.splash-logo-right.move-right {
    transform: translate(30%, -50%);
}

/* Fade in animation for left logo */
.splash-logo-left.fade-in {
    opacity: 1;
}

/* Main app initially hidden */
.main-app {
    display: none;
}

/* Splash screen fade out */
.splash-screen.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}
