@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

body {
    background-repeat: no-repeat;
    background-color: #E9EAEE;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: flex-end; 
    overflow-x: hidden;

    animation: fadeIn 1s ease-in-out; 
}

.right-panel {
    width: 45%; 
    padding: 5% 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;

    opacity: 0;
    animation: slideUpFade 0.8s ease-out 0.4s forwards; 
}

.brand-header {
    position: absolute;
    right: 65px;
    bottom: 75%;
    width: 83%;

    opacity: 0;
    animation: slideUpFade 0.8s ease-out 0.2s forwards;
}

.ticket {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.sub img {
    width: 80%;
    max-width: 200%;
}

form {
    width: 100%;
    padding-top: 25%;
}

.form-group {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 16px;
    color: #111;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #555;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    outline: none;
}

.form-control:focus {
    border-color: #3b4578;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(to bottom, #2e4aa7, #081869);
    border: 1px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:active {
    transform: scale(0.98); 
}

.divider {
    margin: 40px 0 10px 0;
    font-size: 12px;
    color: #555;
}

.google-btn-container {
    width: 100%;
}

.google-btn-container img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 6px;
}

/* Footer */
.footer-text {
    padding-left: 34%;
    margin-top: 15px;
    font-size: 12px;
    color: #333;
}

.footer-text a {
    color: #0000ee;
    text-decoration: none;
    font-weight: bold;
}

.divider-container {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.divider-line {
    flex-grow: 1;
    height: 1px;
    background-color: #999;
}

.divider-text {
    margin: 0 15px;
    font-size: 11px;
    color: #555;
}

/* --- Google Account Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none; /* Hidden by default until JS triggers it */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    padding: 30px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: center;
}

.modal-title {
    font-size: 22px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 5px;
}

.modal-subtitle {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 20px;
}

.account-list {
    text-align: left;
}

.account-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f1f3f4;
}

.account-item:hover {
    background-color: #f8f9fa;
}

.account-item:last-child {
    border-bottom: none;
}

.account-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
    flex-shrink: 0;
}

.use-another {
    background-color: transparent;
    color: #5f6368;
    fill: #5f6368;
}

.account-info {
    margin-left: 15px;
}

.account-name {
    font-size: 14px;
    font-weight: 500;
    color: #3c4043;
}

.account-email {
    font-size: 12px;
    color: #5f6368;
}

.left-content img {
    position: relative;
    bottom: 40px;
    width: 80%;
}

.modal-divider {
    height: 1px;
    background-color: #dadce0;
    margin: 10px 0;
}

.close-modal {
    margin-top: 20px;
    padding: 8px 16px;
    border: none;
    background: none;
    color: #1a73e8;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
}

.close-modal:hover {
    background-color: #f1f3f4;
}

/* Split the body so it handles both left and right sections side-by-side */
body {
    background-color: #E9EAEE;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: space-between; 
    overflow-x: hidden;
    animation: fadeIn 1s ease-in-out; 
}

/* --- Left Panel with Background Image & Text Overlay --- */
.left-panel-bg {
    width: 55%;
    min-height: 100vh;
    background-image: url('assets/side-vektor.png');
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
}

.left-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.left-badge {
    color: #ffffff;
    font-size: 152px;
    font-weight: bold;
}

.left-text-block {
    max-width: 450px;
    margin-bottom: 40px;
}

.left-subtitle {
    color: #ffffff;
    font-size: 25px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.left-title {
    color: #ffffff;
    font-size: 30px;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 20px;
}

.left-line {
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.7);
}

/* Adjust right panel to take the remaining 45% */
.right-panel {
    width: 45%; 
    padding: 5% 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #E9EAEE;
    opacity: 0;
    animation: slideUpFade 0.8s ease-out 0.4s forwards; 
}

/* --- RESPONSIVE MOBILE FIX --- */
@media screen and (max-width: 768px) {
    body {
        flex-direction: column;
        justify-content: flex-start;
    }

    /* Hide the large decorative background panel on mobile to save space */
    .left-panel-bg {
        display: none; 
    }

    /* Make the login/register form take up the full screen width on mobile */
    .right-panel {
        width: 100% !important;
        min-height: 100vh;
        padding: 40px 24px;
        justify-content: center;
        background-color: #E9EAEE;
    }

    /* Fix the brand header position for mobile screens */
    .brand-header {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-bottom: 30px;
        text-align: center;
    }

    .ticket {
        max-width: 180px;
        margin: 0 auto;
        display: block;
    }

    .sub img {
        max-width: 200px;
        margin: 5px auto 0 auto;
        display: block;
    }

    form {
        padding-top: 0;
    }
}
/* --- Langkah kode email (verifikasi & 2FA) — src/emailCode.ts --- */
form[hidden] {
    display: none;
}

.code-title {
    font-size: 22px;
    color: #111;
    margin: 0 0 8px;
}

.code-hint {
    font-size: 15px;
    line-height: 1.5;
    color: #444;
    margin: 0 0 28px;
}

.code-step .form-group {
    margin-bottom: 12px;
}

.code-input {
    font-size: 24px;
    letter-spacing: 10px;
    text-align: center;
}

.code-msg {
    min-height: 20px;
    font-size: 14px;
    color: #444;
    margin: 0 0 16px;
}

.code-msg[data-kind="err"] { color: #DC2626; }
.code-msg[data-kind="ok"]  { color: #15803D; }

.btn-primary:disabled {
    opacity: 0.6;
    cursor: wait;
}

.code-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.code-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 14px;
    color: #2e4aa7;
    cursor: pointer;
}

.code-link:hover:not(:disabled) { text-decoration: underline; }
.code-link:disabled { color: #888; cursor: default; }
