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

:root {
    --primary-color: #1a2a3a;
    --secondary-color: #2a3a4a;
    --accent-color: #00aaff;
    --text-color: #f0f0f0;
    --error-color: #ff4d4d;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.auth-container {
    max-width: 450px;
    background-color: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

h2 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="tel"],
input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--primary-color);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
}

/* --- intl-tel-input Overrides --- */
.iti {
    width: 100%;
}

/* Hide the dropdown arrow completely */
.iti__arrow {
    display: none;
}

/* Style the main container for a unified look */
.iti.iti--container {
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    background-color: var(--primary-color);
    display: flex;
    transition: box-shadow 0.3s ease;
}

.iti.iti--container:focus-within {
    box-shadow: 0 0 10px var(--accent-color);
}

/* Style the flag and dial code section */
.iti--separate-dial-code .iti__selected-flag {
    background-color: transparent;
    font-weight: bold;
    color: var(--text-color);
}

/* Remove hover effect since it's disabled */
.iti__flag-container:hover .iti__selected-flag {
    background-color: transparent;
}

/* Style the input field itself */
.iti__input {
    border: none !important; /* Override inline styles */
    background-color: transparent !important;
    color: var(--text-color);
    border-radius: 0 10px 10px 0;
    margin: 0 !important;
    padding-left: 10px !important;
}

.iti__input:focus {
    box-shadow: none;
}

/* Remove the border from the flag container */
.iti--separate-dial-code .iti__flag-container {
    border: none;
    border-right: 1px solid var(--accent-color);
}

input:focus {
    outline: none;
    box-shadow: 0 0 10px var(--accent-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.checkbox-group input {
    margin-right: 0.5rem;
}

button {
    width: 100%;
    background-color: var(--accent-color);
    border: none;
    border-radius: 10px;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 1rem 2rem;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover:not(:disabled) {
    background-color: #0088cc;
    transform: translateY(-2px);
}

button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

.error-message {
    color: var(--error-color);
    margin-top: 1rem;
    min-height: 1.2em;
}
