﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e8e8e8;
    color: #282828;
}

.container {
    display: flex;
    flex-direction: row;
    border-radius: 16px;
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.left-panel {
    flex: 1;
    background: #a6ccdd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

    .left-panel img {
        max-width: 100%;
        height: auto;
        max-height: 300px;
        border-radius: 50%;
        border: 5px solid #324271;
    }

.right-panel {
    flex: 1;
    padding: 2.5rem;
    position: relative;
    background-color: #ffffff;
}

h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #324271;
    font-weight: 600;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #282828;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #a6ccdd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background-color: #f9f9f9;
    color: #282828;
}

    input[type="text"]:focus,
    input[type="password"]:focus,
    input[type="email"]:focus {
        outline: none;
        border-color: #324271;
        background-color: #ffffff;
    }

.btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #324271;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .btn:hover {
        background-color: #22325c;
    }

.error-message {
    color: #d32f2f;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.input-invalid {
    border: 2px solid #d32f2f !important;
    box-shadow: 0 0 4px rgba(211, 47, 47, 0.3);
    background-color: #fddede;
    color: #b71c1c;
}

label.required::after {
    content: " *";
    color: #d32f2f;
}

.spinner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    z-index: 10;
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

    .loading-overlay.active {
        display: flex;
    }

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #324271;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

.qr-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 1rem auto;
    border: 1px solid #ccc;
    padding: 8px;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        margin: 1rem;
    }

    .left-panel {
        padding: 1.5rem;
    }

    .right-panel {
        padding: 1.5rem;
    }

    .left-panel img {
        max-height: 100px;
    }
}

.two-fa-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 0.5rem;
}

    .two-fa-inputs input {
        width: 40px;
        height: 50px;
        font-size: 24px;
        text-align: center;
        border: 1px solid #ccc;
        border-radius: 6px;
    }