@import url("../font.css");

* {
    box-sizing: border-box;
}

body {
    background-color: #F5F5F4;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;

    background-image: url("../assets/3.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: left;
}

.container {
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
    padding: 15px 20px;
    background-color: rgb(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

h1 {
    color: #222222;
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.form-row {
    display: flex;
    flex-direction: column;
    margin: 0 -10px;
}

.form-group {
    margin-bottom: 20px;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile-first approach: All elements are full width by default */

/* Media query for desktop (two columns) */
@media (min-width: 768px) {
    .form-row {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .form-group {
        width: 50%;
    }
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #222222;
}

.required::after {
    content: " *";
    color: #e74c3c;
}

input,
select {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

input:focus,
select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

button {
    background-color: #171717;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.3s;
    position: relative;
}

button:hover {
    background-color: #404040;
    box-shadow: 0 10px 30px -10px rgba(23, 23, 23, 0.3);
}

.password-requirements {
    font-size: 12px;
    color: #222222;
    margin-top: 4px;
}

.error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.login {
    margin: 5px auto;
    text-align: center;
    color: #222222;
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: underline;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    --spinnerSize: 24px;
    width: var(--spinnerSize);
    height: var(--spinnerSize);
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.loading .text {
    visibility: hidden;
}

.loading .spinner {
    display: block;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media only screen and (max-width:600px) {
    label {
        display: none;
    }
}

@media only screen and (max-width: 600px) {
    body {
        background-position: center;
    }

    .container {
        padding: 15px;
        width: 90dvw;
    }

    h1 {
        font-size: x-large;
    }
}