:root {
    --gold: #d4af37;
    --gold-light: #f4d06f;
    --bg-dark: #050505;
    --card-bg: rgba(20, 20, 20, .92);
    --text: #ffffff;
    --text-muted: #bdbdbd;
    --input-bg: #141414;
    --input-border: #2f2f2f;
    --shadow: 0 25px 60px rgba(0, 0, 0, .6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: "Poppins", sans-serif;
    background: #000;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, .20), transparent 40%),
        radial-gradient(circle at bottom right, rgba(212, 175, 55, .12), transparent 40%),
        linear-gradient(135deg, #000, #090909, #111);
    z-index: 0;
}

.background-overlay {
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 100px,
        rgba(255, 255, 255, .02) 101px
    );
    z-index: 1;
}

.login-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vh, 30px);
}

.login-card {
    width: min(100%, 440px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, .15);
    border-radius: 18px;
    padding: clamp(22px, 4vh, 34px);
    box-shadow: var(--shadow);
}

.logo-area {
    display: flex;
    justify-content: center;
    margin-bottom: clamp(12px, 2vh, 18px);
}

.logo-area img {
    width: clamp(92px, 16vh, 130px);
    height: auto;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, .35));
}

.header {
    text-align: center;
    margin-bottom: clamp(18px, 3vh, 28px);
}

.header h1 {
    color: var(--gold);
    font-size: clamp(26px, 5vh, 34px);
    font-weight: 800;
    letter-spacing: 3px;
}

.header p {
    color: var(--text-muted);
    margin-top: 6px;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.label-row a,
.auth-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 13px;
}

.label-row a:hover,
.auth-link:hover {
    color: var(--gold-light);
}

.input-group input {
    width: 100%;
    min-height: 48px;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: white;
    font-size: 15px;
}

.input-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, .12);
}

.btn-login {
    min-height: 48px;
    margin-top: 2px;
    padding: 13px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #000;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transition: .2s;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(212, 175, 55, .22);
}

.btn-login:active {
    transform: scale(.98);
}

.auth-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
}

.auth-alert-erro {
    border: 1px solid rgba(220, 53, 69, .45);
    background: rgba(220, 53, 69, .13);
    color: #ff9ba5;
}

.auth-alert-sucesso {
    border: 1px solid rgba(25, 135, 84, .45);
    background: rgba(25, 135, 84, .14);
    color: #8ee0b3;
}

@media (max-height: 680px) {
    .login-wrapper {
        align-items: start;
    }

    .login-card {
        margin: 0 auto;
    }
}

@media (max-width: 500px) {
    .login-card {
        border-radius: 14px;
    }

    .label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}
