/* Root styles */
:root {
    --primary-blue: #003366;
    --card-radius: 1rem;
    --card-padding: 2rem;
    --card-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    --text-color: #333;
    --white: #fff;
}

/* Reset and base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: Arial, sans-serif;
    background-color: var(--primary-blue);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loader */
#loader {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--primary-blue);
    z-index: 10;
}
#loader img {
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Card container */
.card {
    background-color: var(--white);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    box-shadow: var(--card-shadow);
    width: 320px;
    text-align: center;
    z-index: 5;
}

/* Logo placeholder */
.logo-placeholder {
    margin-bottom: 1rem;
}
.logo-placeholder img {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Forms */
.card h2 {
    margin-bottom: 1rem;
    color: var(--primary-blue);
}
.card form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.card input {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1rem;
}
.card button {
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background-color: var(--primary-blue);
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
}
.card button:active {
    opacity: 0.9;
}

/* Language toggle */
.language-toggle {
    margin-top: 1rem;
    font-size: 0.9rem;
}
.language-toggle button {
    background: none;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    font-weight: bold;
}
.otp-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}
.otp-box {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
}
.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
    animation: fadeIn 0.3s ease-in-out;
    color: #2e7d32;
}

.checkmark-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #c8e6c9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.checkmark {
    font-size: 2rem;
    font-weight: bold;
    color: #2e7d32;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
