﻿:root {
    --primary-color: #003366;
    --secondary-color: #00a8e8;
    --text-color: #333;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --error: #dc3545;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 900px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    min-height: 500px;
}

.left-box {
    flex: 1;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .left-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.8;
    }

    .left-box::after {
        content: "Card Operation System";
        position: absolute;
        bottom: 30px;
        left: 30px;
        color: white;
        font-weight: 700;
        font-size: 1.2rem;
        border-left: 4px solid var(--secondary-color);
        padding-left: 15px;
    }

.right-box {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-form {
    width: 100%;
    max-width: 320px;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 0.85rem;
        font-weight: 600;
        color: #555;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"] {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #eee;
        border-radius: 8px;
        outline: none;
        transition: var(--transition);
        font-size: 0.95rem;
    }

    .form-group input:focus {
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.1);
    }

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    transition: var(--transition);
}

    .toggle-password:hover {
        color: var(--primary-color);
    }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
}

.forgot-password {
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

    .forgot-password:hover {
        text-decoration: underline;
    }

.login-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

    .login-btn:hover {
        background: #002244;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 51, 102, 0.2);
    }

    .login-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
        transform: none;
    }

.toast-container-custom {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.toast-custom {
    min-width: 300px;
    padding: 15px 20px;
    border-radius: 10px;
    background: var(--error);
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    animation: slideIn 0.5s ease forwards;
}

    .toast-custom.hide {
        animation: slideOut 0.5s ease forwards;
    }

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

footer {
    padding: 8px;
    text-align: center;
    background: #fff;
    border-top: 1px solid #eee;
}

.footer-text {
    font-size: 0.85rem;
    color: #888;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        max-width: 400px;
    }

    .left-box {
        display: none;
    }

    .right-box {
        padding: 30px 20px;
    }
}




/* OTP Giriş Alanı İyileştirmesi */
.otp-input-style {
    width: 100%;
    max-width: 280px;
    height: 60px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 12px;
    text-align: center;
    border: 2px solid #dbe4ed;
    border-radius: 12px;
    background: #f8fafc;
    color: #1a4a7c;
    transition: all 0.3s ease;
    margin: 20px 0;
}

    .otp-input-style:focus {
        outline: none;
        border-color: #1a4a7c;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(26, 74, 124, 0.1);
    }

/* Timer Badge - Kurumsal Terminal Stili */
.timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(26, 74, 124, 0.05); /* Kurumsal mavi şeffaf */
    color: #1a4a7c;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(26, 74, 124, 0.1);
    transition: all 0.4s ease;
}

#time {
    font-family: 'Inter', sans-serif;
    font-variant-numeric: tabular-nums; /* Rakamların oynamasını engeller */
    min-width: 45px;
    display: inline-block;
    text-align: left;
}

/* Timer İkonu Animasyonu (Süre azalırken hafifçe yanıp söner) */
.timer-badge i {
    animation: pulse-blue 2s infinite;
}

@@keyframes pulse-blue {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Bootstrap d-flex hizalaması için ek dokunuş */
.timer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.timer-container2 {
    align-items: center;
    margin-top: 1.5rem;
}

/* OTP Konteynırı */
.otp-actions-container {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

/* Timer Kutusu */
.timer-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

    .timer-box .label {
        font-size: 13px;
        font-weight: 500;
        color: #64748b;
    }

.timer-badge {
    padding: 6px 14px;
    background: #f1f5f9;
    color: #1a4a7c;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tekrar Gönder Alanı */
.resend-box {
    text-align: center;
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
}

    .resend-box p {
        font-size: 12px;
        color: #94a3b8;
        margin-bottom: 5px;
    }

.resend-link {
    font-size: 14px;
    font-weight: 600;
    color: #1a4a7c;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: 0.3s;
}

    .resend-link.disabled {
        color: #cbd5e1;
        cursor: not-allowed;
        pointer-events: none;
    }

    .resend-link:not(.disabled):hover {
        color: #3498db;
        transform: translateY(-1px);
    }

/* Input Stil Tekrarı (Garanti olsun) */
.otp-input-style {
    width: 100%;
    letter-spacing: 8px;
    font-size: 28px;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 15px;
}
/* OTP Giriş Alanı İyileştirmesi */
.otp-input-style {
    width: 100%;
    max-width: 280px;
    height: 60px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 12px;
    text-align: center;
    border: 2px solid #dbe4ed;
    border-radius: 12px;
    background: #f8fafc;
    color: #1a4a7c;
    transition: all 0.3s ease;
    margin: 20px 0;
}

    .otp-input-style:focus {
        outline: none;
        border-color: #1a4a7c;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(26, 74, 124, 0.1);
    }

/* Timer Badge - Kurumsal Terminal Stili */
.timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(26, 74, 124, 0.05); /* Kurumsal mavi şeffaf */
    color: #1a4a7c;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(26, 74, 124, 0.1);
    transition: all 0.4s ease;
}

#time {
    font-family: 'Inter', sans-serif;
    font-variant-numeric: tabular-nums; /* Rakamların oynamasını engeller */
    min-width: 45px;
    display: inline-block;
    text-align: left;
}

/* Timer İkonu Animasyonu (Süre azalırken hafifçe yanıp söner) */
.timer-badge i {
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Bootstrap d-flex hizalaması için ek dokunuş */
.timer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.timer-container2 {
    align-items: center;
    margin-top: 1.5rem;
}

/* OTP Konteynırı */
.otp-actions-container {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

/* Timer Kutusu */
.timer-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

    .timer-box .label {
        font-size: 13px;
        font-weight: 500;
        color: #64748b;
    }

.timer-badge {
    padding: 6px 14px;
    background: #f1f5f9;
    color: #1a4a7c;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tekrar Gönder Alanı */
.resend-box {
    text-align: center;
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
}

    .resend-box p {
        font-size: 12px;
        color: #94a3b8;
        margin-bottom: 5px;
    }

.resend-link {
    font-size: 14px;
    font-weight: 600;
    color: #1a4a7c;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: 0.3s;
}

    .resend-link.disabled {
        color: #cbd5e1;
        cursor: not-allowed;
        pointer-events: none;
    }

    .resend-link:not(.disabled):hover {
        color: #3498db;
        transform: translateY(-1px);
    }

/* Input Stil Tekrarı (Garanti olsun) */
.otp-input-style {
    width: 100%;
    letter-spacing: 8px;
    font-size: 28px;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 15px;
}




/* Toast Mesaj Tasarımı */
.toast-container-custom {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast-custom {
    background: #1a4a7c;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.5s ease forwards;
}

    .toast-custom.hide {
        animation: slideOut 0.5s ease forwards;
    }

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
