/* Center container vertically and horizontally */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.site-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main auth container */
.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    opacity: 0.75;
    border-radius: 12px;
    border: 1px solid var(--color-corporate, #D86C00);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Always-visible section: heading and form */
.auth-container h2 {
    margin: 0;
    text-align: center;
    font-size: 1.5rem;
}

.auth-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;    
}

.auth-container label {
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-container input {
    padding: 0.75rem;
    border: 1px solid var(--color-corporate, #D86C00);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.auth-container input:focus {
    outline: none;
    border-color: var(--color-corporate, #D86C00);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.auth-container button {
    padding: 0.75rem 1.5rem;
    background: var(--color-corporate, #D86C00);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.auth-container button:hover {
    background: #b15f0d;
}

.auth-container button:active {
    transform: scale(0.98);
}

/* Visible-on-demand section */
#auth-next {
    min-height: 0;
    max-height: 300px;
    overflow-y: auto;
}

#auth-next form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#auth-next #auth-email-warning {
    color: #c0392b;
    font-size: 0.9rem;
    text-align: center;
}

#auth-next a {
    color: #2196f3;
    text-decoration: none;
}

#auth-next a:hover {
    text-decoration: underline;
}

/* Responsive design for small screens */
@media (max-width: 480px) {
    .auth-container {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
        padding: 1.5rem;
    }

    .auth-container h2 {
        font-size: 1.25rem;
    }

    .auth-container input,
    .auth-container button {
        font-size: 16px;
    }
}

/* Success and error message styles */
.success-message,
.error-message {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
}

.success-message h2 {
    color: #2e7d32;
    margin: 0 0 1rem 0;
}

.error-message {
    background: #ffebee;
    color: #c62828;
}

.error-message h2 {
    color: #c62828;
    margin: 0 0 1rem 0;
}

.logo-header {
    display: block;
    padding-top: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: static;
}

.logo-header img {
    height: 40px;
    width: auto;
}

@media (min-width: 768px) {
    .logo-header {
        position: fixed;
        top: 1.5rem;
        left: 2rem;
        margin-bottom: 0;
        text-align: left;
        z-index: 1000;
    }
    
    .logo-header img {
        height: 50px;
    }
}