:root {
    --primary-color: #012169;
    --secondary-color: #005bb5;
    --accent-color: #dc3545;
    --border-color: #e0e0e0;
    --font-primary: 'Roboto', sans-serif;
    --box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

.header {
    font-size: 2vw;
    font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 1vh;
    text-align: center;
}

body {
    background: linear-gradient(to bottom, #0034a8, #4a9bed);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-page {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 5vh;
    padding-bottom: 10vh;
}

.auth-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 450px;
    width: 100%;
}

.auth-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2vh;
    width: 10%;
}

.auth-logo {
    width: 100px;
    height: auto;
    border-radius: 50%;
    box-shadow: var(--box-shadow);
    margin-bottom: 2vh;
}

.auth-container {
    background-color: white;
    border-radius: 12px;
    padding: 2vw;
    width: 100%;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.auth-error {
    background-color: #ffe5e5;
    color: var(--accent-color);
    padding: 0.75vw 1vw;
    margin-bottom: 1.5vw;
    border-radius: 0.5vw;
    font-weight: 500;
    font-size: 1rem;
}

.auth-toggle {
    display: flex;
    justify-content: center;
    gap: 1vw;
    margin-bottom: 2vw;
    position: relative;
    border-bottom: 2px solid #ccc;
}

.auth-toggle-btn {
    background: none;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.8vw 1.5vw;
    cursor: pointer;
    color: var(--primary-color);
    position: relative;
    transition: color 0.3s ease;
}

.auth-toggle-btn.active {
    color: var(--secondary-color);
}

.auth-toggle-btn.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 20%;
    width: 60%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2vw;
    text-align: left;
}

.auth-form input {
    padding: 1vw;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 100%;
}

.auth-row {
    display: flex;
    gap: 1vw;
}

.auth-row input {
    flex: 1;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    margin-bottom: 0.5vw;
    font-weight: 500;
    color: #4a4a4a;
    font-size: 0.95rem;
    text-align: left;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1vw;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}
