﻿
/*--- Configurações Globais ---*/
:root {
    --bg-rubro-premium: linear-gradient(135deg, #b80d0d 0%, #8c0a0a 50%, #4a0505 100%);
    --bg-premium: linear-gradient(135deg, #500a0a 0%, #290505 60%, #120202 100%);
    --card-glass: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --accent-rubro: #b80d0d;
    --accent-rubro-hover: #8c0a0a;
    --text-pure: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
}

body {
    background: var(--bg-premium);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 20px;
}

/*--- Partículas de Fundo ---*/
.icon-particle {
    position: absolute;
    top: -50px;
    z-index: 1;
    color: #ff4d4d;
    opacity: 0.4;
    user-select: none;
    pointer-events: none;
    animation-name: cair;
    animation-timing-function: linear;
    animation-iteration-count: 1;
}

@keyframes cair {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.4;
    }

    100% {
        transform: translateY(120vh) rotate(360deg);
        opacity: 0;
    }
}

/*--- Container Principal Flex ---*/
.login-wrapper {
    width: 100%;
    max-width: 380px;
    z-index: 10;
    position: relative;
}

/*--- Card de Login Premium ---*/
.hpanel-custom {
    background: var(--card-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.custom-login-header {
    text-align: center;
    margin-bottom: 30px;
}

    .custom-login-header p {
        color: var(--text-muted);
        font-size: 14px;
        margin-top: 10px;
        font-weight: 400;
    }

/*--- Formulários e Inputs Modernos ---*/
.form-group-custom {
    position: relative;
    margin-bottom: 20px;
}

    .form-group-custom label {
        color: var(--text-pure);
        font-size: 12.5px;
        font-weight: 600;
        margin-bottom: 6px;
        display: block;
        letter-spacing: 0.3px;
    }

.input-icon-wrapper {
    position: relative;
}

    .input-icon-wrapper i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #e63946;
        font-size: 14px;
        transition: color 0.2s ease;
    }

.form-control-custom {
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid var(--card-border) !important;
    color: var(--text-pure) !important;
    padding: 12px 14px 12px 40px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
    width: 100%;
    transition: all 0.2s ease;
}

    .form-control-custom::placeholder {
        color: rgba(255, 255, 255, 0.25);
    }

    .form-control-custom:focus {
        border-color: var(--accent-rubro) !important;
        box-shadow: 0 0 0 3px rgba(184, 13, 13, 0.2) !important;
        outline: none;
    }

.form-group-custom:focus-within i {
    color: var(--accent-rubro);
}

/*--- Checkbox customizado ---*/
.login-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

    .login-checkbox label {
        color: var(--text-muted);
        font-size: 13.5px;
        cursor: pointer;
        user-select: none;
    }
        .login-checkbox label:hover {
            color: rgba(255, 255, 255, 0.8);
        }

    .login-checkbox input {
        accent-color: var(--accent-rubro);
        margin-right: 8px;
        cursor: pointer;
    }

/*--- Botões Dinâmicos ---*/
.btn-action-block {
    margin-top: 15px;
}

.btn-login-submit {
    background: var(--accent-rubro);
    border: none;
    color: var(--text-pure);
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(184, 13, 13, 0.3);
}

    .btn-login-submit:hover {
        background: var(--accent-rubro-hover);
        transform: translateY(-1px);
        box-shadow: 0 6px 15px rgba(184, 13, 13, 0.4);
    }

/*--- Divisor do Login Social ---*/
.social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 22px 0 18px 0;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .social-divider::before,
    .social-divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .social-divider:not(:empty)::before {
        margin-right: .75em;
    }

    .social-divider:not(:empty)::after {
        margin-left: .75em;
    }

/*--- Grid de Redes Sociais ---*/
.social-login-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.btn-social {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 11px;
    color: var(--text-pure);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

    .btn-social:hover {
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-1px);
        color: var(--text-pure);
    }

    /* Cores de identidade sutil no hover */
    .btn-social.google:hover {
        color: #ea4335;
    }

    .btn-social.facebook:hover {
        color: #1877f2;
    }

    .btn-social.apple:hover {
        color: #a3a3a3;
    }

.btn-create-acc {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-pure);
    padding: 11px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    width: 100%;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    margin-top: 5px;
    transition: all 0.2s ease;
}

    .btn-create-acc:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.3);
        color: var(--text-pure);
    }

/*--- Footer ---*/
.login-footer {
    text-align: center;
    margin-top: 25px;
}

    .login-footer p {
        color: rgba(255, 255, 255, 0.4);
        font-size: 12px;
        margin: 0;
    }

    .login-footer a {
        color: var(--text-muted);
        text-decoration: none;
        font-weight: 500;
    }

        .login-footer a:hover {
            color: var(--text-pure);
        }


