/* Center any auth screen inside #main-content */
#main-content {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* keeps logo/header visible at top */
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Shared card style */
.auth-card {
    background: #1e0a33;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow:
        0 0 12px rgba(123, 31, 162, 0.6),
        0 0 24px rgba(123, 31, 162, 0.4),
        0 6px 18px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 420px;
    color: #fff;
}

/* Headings */
.auth-card h2,
.auth-card h3 {
    text-align: center;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 0 6px rgba(123, 31, 162, 0.7);
    font-family: 'Cinzel', serif;
}

/* Labels + inputs */
.auth-card label {
    display: flex;
    flex-direction: column;
    font-size: 0.9em;
    gap: 6px;
    color: #ddd;
}

.auth-card input {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #5c2a8a;
    outline: none;
    background-color: #1a0b2e;
    color: #fff;
    font-size: 0.95rem;
    transition: border 0.2s, box-shadow 0.2s;
}

.auth-card input:focus {
    border-color: #9d4edd;
    box-shadow: 0 0 6px #9d4edd;
}

/* Button */
.auth-card button {
    background: linear-gradient(90deg, #7b1fa2, #9d4edd);
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s, transform 0.1s;
}

.auth-card button:hover {
    background: linear-gradient(90deg, #9d4edd, #7b1fa2);
}

.auth-card button:active {
    transform: scale(0.97);
}

/* Result messages */
#loginResult,
#result {
    margin-top: 15px;
    text-align: center;
    font-size: 0.95rem;
}

.small-btn {
    background: none;
    border: none;
    color: #9d4edd;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 10px;
    text-align: left;
}
.small-btn:hover {
    text-decoration: underline;
}
