@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Raleway:wght@300;400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: #1a1208;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(184, 150, 12, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Raleway', sans-serif;
}

.login-shell {
    width: 100%;
    max-width: 460px;
    padding: 0 1rem;
}

h1 {
    font-family: 'Cinzel', Georgia, serif;
    color: #d4af37;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 4px;
    margin-bottom: 4px;
}

.kicker {
    font-size: 11px;
    color: #8e7231;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 0.8rem;
}

form {
    background: #1e1507;
    border: 1px solid #b8960c;
    border-radius: 12px;
    padding: 2.5rem 2.2rem;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow:
        0 0 60px rgba(184, 150, 12, 0.12),
        0 20px 60px rgba(0, 0, 0, 0.6),
        inset 0 0 80px rgba(0, 0, 0, 0.3);
}

form::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    border-radius: 2px;
}

form::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 30%;
    right: 30%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8a6f20, transparent);
}

body::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin-bottom: 1.5rem;
}

h1 + p,
h1 ~ p:first-of-type {
    font-size: 10px;
    color: #7a6030;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1.8rem;
}

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.8rem;
}

label {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: #a07828;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 7px;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    background: #120d04;
    border: 1px solid #3a2d10;
    border-radius: 6px;
    padding: 11px 14px;
    color: #e8d5a0;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    margin-bottom: 1.2rem;
    appearance: none;
    -webkit-appearance: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    border-color: #b8960c;
    box-shadow: 0 0 0 3px rgba(184, 150, 12, 0.12);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: #4a3a18;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23b8960c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

select option {
    background: #1e1507;
    color: #e8d5a0;
}

button[type="submit"],
button {
    width: 100%;
    margin-top: 0.4rem;
    background: linear-gradient(135deg, #9a7a08 0%, #d4af37 35%, #f0cc55 50%, #d4af37 65%, #9a7a08 100%);
    border: none;
    border-radius: 6px;
    padding: 13px;
    color: #1a1208;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    position: relative;
}

button[type="submit"]:hover,
button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

button[type="submit"]:active,
button:active {
    transform: translateY(0);
    opacity: 1;
}

.back-link {
    display: block;
    margin-top: 14px;
    text-align: center;
    text-decoration: none;
    color: #c8a84a;
    font-size: 12px;
    letter-spacing: 1px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.back-link:hover {
    color: #f0cc55;
    opacity: 0.95;
}

p[style*="color:red"],
p.error {
    background: rgba(200, 50, 50, 0.08) !important;
    border: 1px solid #5a1a1a;
    border-radius: 6px;
    padding: 9px 14px;
    color: #c87070 !important;
    font-size: 12px;
    text-align: center;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    form {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }

    .login-shell {
        padding: 0 0.4rem;
    }
}
