/* === GLOBAL RESET + BODY === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #ffffff;
    height: 100vh;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* === CARD COMPONENT === */
.card {
    background-color: #000000;
    color: #ffffff;
    padding: 50px 50px;
    border-radius: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 550px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}
.card .wide {
    width: 100%;
    max-width: 550px;
}

.card ol {
    font-weight: bold;
    text-align: start;
    font-size: 14px;
}

.card li {
    padding-top:5px;
}

/* === LOGO === */
.logo {
    width: 200px;
    height: auto;
    margin-bottom: 60px;
}

/* === TITLES & TEXT === */
.title,
.form-title,
.error-title {
    font-size: 14px;
    line-height:20px;
    color: #ffffff;
    margin-bottom: 30px;
}

.loading-text {
    font-size: 14px;
    line-height:20px;
    color: #ffffff;
}

.error-title {
    color: #ff4d4d;
}

.error-description,
.description {
    font-size: 14px;
    color: #dddddd;
    line-height: 20px;
    margin-bottom: 30px;
}

.error-message {
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    padding: 12px 16px;
    margin-bottom: 15px;
    border-radius: 3px;
    width: 100%;
    text-align: center;
    background-color: #dc3545;
}


/* === FORM === */
form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

label {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 6px;
    text-align: left;
    display:block;
}

input,
select {
    font-size: 14px;
    padding: 15px 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 10px;
}

input::placeholder {
    color: #999;
}

/* Form rows (ZIP + City) */
.form-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.form-row input {
    width: 100%;
}

.form-row .half {
    flex: 0 0 calc(50% - 5px);
    text-align:left;
}

/* Form password */
.password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px; /* space for the icon */
}

.toggle-password {
    position: absolute;
    top: 37%;
    right: 12px;
    transform: translateY(-50%);
    font-size: 18px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease;
    pointer-events: all;
}

.toggle-password:hover {
    color: #ffffff;
}

/* === BUTTONS === */
button,
.button,
.redirect-button {
    color: #555;
    line-height: 1.2;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 25px;
    background: #fff;
    position: relative;
    z-index: 1;
    transition: all .4s;
    text-decoration:none;
    margin-top:10px;
}


.button:hover,
button:hover,
.redirect-button:hover {
    background-color: #ccc;
    color:#fff;
}

/* Spinner inside button */
button .spinner {
    position: absolute;
    right: 15px;
    width: 18px;
    height: 18px;
    border: 3px solid #000000;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

button.loading .spinner {
    display: inline-block;
}

/* === LOADING SPINNER === */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ffffff;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === BUTTON GROUPS === */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* === RESPONSIVE SCROLL FOR CARD === */
.card::-webkit-scrollbar {
    width: 8px;
}

.card::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 4px;
}

hr {
    width: 100%;
    border: none;
    border-top: 1px solid #444;
    margin: 20px 0;
    opacity: 0.6;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}
.visible {
    opacity: 1;
    pointer-events: auto;
}