/* ===== VARIÁVEIS CSS ===== */
:root {
    --primary-color: #d4b905;
    --primary-gradient: linear-gradient(135deg, #d4b905 0%, #e6cb06 100%);
    --text-white: #ffffff;
    --text-white-80: rgba(255, 255, 255, 0.85);
    --text-white-90: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.12);
    --bg-glass-hover: rgba(255, 255, 255, 0.15);
    --border-glass: rgba(255, 255, 255, 0.25);
    --border-focus: rgba(212, 185, 5, 0.8);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 25px rgba(212, 185, 5, 0.5);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== ANIMAÇÕES ===== */
@keyframes slideInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInDown {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes makebigger {
    0% {
        width: 5px;
    }
    100% {
        width: 300px;
    }
}

/* ===== BASE ===== */
body, #app {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.login-page {
    background-image: url('/img/login-bg-2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

/* ===== LAYOUT PRINCIPAL ===== */
.login-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.left-column {
    flex: 1;
    background: linear-gradient(181deg, rgb(155 163 104 / 9%) 10%, rgb(95 83 0 / 62%) 60%, rgb(255 255 255 / 0%) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.right-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ===== LOGO ===== */
.logo-container {
    text-align: center;
    color: var(--text-white);
    margin-top: 57px;
}

.logo-container img {
    width: 5px;
    animation: makebigger 1s ease-out 0.4s forwards;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.logo-container p {
    font-size: 11px;
    text-transform: uppercase;
    margin-top: 20px;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* ===== LOGIN BOX (GLASSMORPHISM) ===== */
.login-box {
    background: rgb(16 8 0 / 59%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 50px 40px;
    color: var(--text-white);
    width: 420px;
    max-width: 100%;
    box-shadow: var(--shadow-glass);
    animation: slideInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(173, 156, 4, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

/* ===== TÍTULOS ===== */
.login-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    animation: fadeInDown 0.6s ease-out 0.2s both;
    position: relative;
    z-index: 1;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-white-90);
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.6s ease-out 0.3s both;
    position: relative;
    z-index: 1;
}

/* ===== INPUT BOX ===== */
.input-box {
    position: relative;
    margin-bottom: 25px;
    z-index: 1;
}

.input-box:nth-child(1) {
    animation: slideInUp 0.6s ease-out 0.4s both;
}

.input-box:nth-child(2) {
    animation: slideInUp 0.6s ease-out 0.5s both;
}

.input-box label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-white-90);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.input-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid var(--border-glass);
    border-radius: 12px;
    padding: 16px 18px;
    color: var(--text-white);
    font-size: 16px;
    font-weight: 400;
    transition: var(--transition-smooth);
    outline: none;
    box-sizing: border-box;
}

.input-box input::placeholder {
    color: var(--text-white-80);
    opacity: 0.6;
}

.input-box input:focus {
    background: var(--bg-glass-hover);
    border-color: var(--border-focus);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* ===== LINKS ===== */
.moretexts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 30px;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    animation: slideInUp 0.6s ease-out 0.6s both;
}

.moretexts a {
    color: var(--text-white-90);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.moretexts a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.moretexts a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.moretexts a:hover::after {
    width: 100%;
}

/* ===== BOTÃO ===== */
.actions {
    position: relative;
    z-index: 1;
    animation: slideInUp 0.6s ease-out 0.7s both;
}

.btn-login {
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    color: rgba(0, 0, 0, 0.9);
    font-size: 17px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(212, 185, 5, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(212, 185, 5, 0.6);
}

.btn-login:hover:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.btn-login:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* ===== MENSAGENS DE ERRO ===== */
.error-message {
    color: #ff5252;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    display: block;
    animation: shake 0.4s ease;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 12px;
    border-radius: 6px;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    @keyframes makebiggerR {
        0% {
            width: 5px;
        }
        100% {
            width: 135px;
        }
    }

    .login-container {
        flex-direction: column;
    }

    .left-column {
        height: 16vh;
        flex: none;
    }

    .right-column {
        height: 70vh;
        flex: none;
        padding: 0 5%;
    }

    .login-box {
        width: 90%;
        padding: 40px 30px;
    }

    .logo-container img {
        width: 5px;
        animation: makebiggerR 1s ease-out 0.4s forwards;
    }
}

@media (max-width: 480px) {
    .login-box {
        width: 95%;
        padding: 30px 20px;
    }

    .input-box input {
        padding: 14px 16px;
        font-size: 15px;
    }

    .input-box label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .login-title {
        font-size: 26px;
    }

    .login-subtitle {
        font-size: 14px;
    }

    .moretexts {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn-login {
        padding: 14px 20px;
        font-size: 16px;
    }
}
