﻿/* ===== VARIÁVEIS CSS ===== */

/* ===== ANIMAÇÕES ===== */
@keyframes slideInUp {
    0% {
        transform: translateY(30px);
        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: 500px;
    }
}

: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);
}

/* ===== BASE ===== */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-image: url('/tenants/branding/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* ===== LOADING ===== */
#loading-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.55);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

    #loading-wrapper .spinner-border {
        width: 5rem;
        height: 5rem;
        color: var(--primary-color);
        border-width: 0.7em;
        margin-bottom: 10px;
    }

/* ===== LAYOUT PRINCIPAL ===== */
.default-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.left-column {
    flex: 1;
    background: linear-gradient(181deg, rgb(12 19 22 / 83%) 10%, rgb(0 97 138 / 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);
}

    .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: var(--bg-glass);
    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;
    }

/* ===== INPUT BOX ===== */
.input-box {
    position: relative;
    margin-bottom: 25px;
}

    .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);
        }

            .input-box input:focus + label {
                color: var(--primary-color);
            }

/* ===== MENSAGENS DE VALIDAÇÃO ===== */

.field-validation-error {
    padding: 5px;
    border-radius: 6px;
    background: black;
}

.text-danger {
    color: #ff5252;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    display: block;
    animation: shake 0.4s ease;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {

    @keyframes makebiggerR {
        0% {
            width: 5px;
        }

        100% {
            width: 235px;
        }
    }

    .default-container {
        flex-direction: column;
    }

    .left-column {
        height: 22vh;
        flex: none;
    }

    .right-column {
        height: 70vh;
        flex: none;
    }

    .login-box {
        width: 90%;
        padding: 40px 30px;
    }

    .logo-container img {
        width: 5px;
        animation: makebiggerR 1s ease-out 0.4s forwards;
    }

    .right-column {
        padding: 0 5%;
    }
}

@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;
    }
}
