﻿:root {
    --azul: #30B3FF;
    --roxo: #7F3FF5;
    --cinza-claro: rgba(0, 0, 0, 0.05);
}

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

html, body {
    height: 100%;
    font-family: 'Source Sans Pro', sans-serif;
    background: #fff;
    overflow-x: hidden;
}

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ========================================
   TOPO
   ======================================== */
.login-top {
    position: relative;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 8%;
    background: #000;
}

.bg-image {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.top-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.software {
    font-size: clamp(0.9rem, 1vw, 1.2rem);
    color: var(--roxo);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.titulo {
    font-size: clamp(4rem, 7vw, 8rem);
    font-weight: 700;
    margin: 10px 0;
    color: #fff;
    line-height: 1;
}

.descricao {
    font-size: clamp(1rem, 1.4vw, 1.6rem);
    font-weight: 300;
    color: #fff;
}

.destaque {
    color: var(--roxo);
    font-weight: 500;
}

/* ========================================
   BASE
   ======================================== */
.login-bottom {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 140px 8% 50px;
    background: #fff;
    position: relative;
    gap: 3vw;
}

/* ========================================
   FORMULÁRIO (FORA DAS COLUNAS)
   ======================================== */
.login-form-wrapper {
    position: absolute;
    top: calc(40vh + 100px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.login-form-box {
    background: linear-gradient(135deg, var(--azul), var(--roxo));
    padding: 40px;
    border-radius: 25px;
    width: 90%;
    max-width: 500px;
    color: white;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    /* nunca some */
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

    .login-form-box h2 {
        font-size: 0.9rem;
        text-transform: uppercase;
        color: #d0eaff;
        margin-bottom: 6px;
    }

    .login-form-box h3 {
        font-size: 2rem;
        margin-bottom: 30px;
        font-weight: bold;
    }

.form-group {
    margin-bottom: 30px;
}

    .form-group label {
        font-size: 0.95rem;
        font-weight: bold;
    }

.form-control {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: none;
    border-bottom: 1px solid white;
    color: white;
    font-size: 1rem;
}

    .form-control::placeholder {
        color: #eee;
    }

.remember-me {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

    .remember-me input {
        margin-right: 8px;
    }

.btn-login {
    background: white;
    color: var(--roxo);
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    padding: 12px;
    width: 100%;
    cursor: pointer;
    margin-top: 15px;
}

.forgot-password {
    display: block;
    margin-top: 10px;
    color: #eee;
    text-align: right;
    font-size: 0.9rem;
    text-decoration: none;
}

/* ========================================
   ESQUERDA
   ======================================== */
.bottom-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    z-index: 2;
    margin-top: 80px;
}

    .bottom-left h4 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #333;
    }

.btn-contact,
.btn-demo {
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    width: fit-content;
}

.btn-contact {
    background: var(--azul);
    color: #fff;
}

.btn-demo {
    border: 2px solid var(--azul);
    color: var(--azul);
}

/* ========================================
   DIREITA (DECORATIVO)
   ======================================== */
.bottom-right {
    flex: 1;
    position: relative;
    margin-top: 80px;
}

.circulos-wrapper {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.circulo {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.grande {
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pequeno {
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ========================================
   MOBILE / TABLET
   ======================================== */
@media (max-width: 1024px) {
    .login-form-wrapper {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin-bottom: 30px;
    }

    .login-bottom {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
    }

    .bottom-left {
        margin-top: 0;
        align-items: center;
        text-align: center;
    }

    .bottom-right {
        display: none;
    }
}

/* ========================================
   ALTURA MUITO PEQUENA → LOGIN ONLY
   ======================================== */
@media (max-height: 650px) {
    .login-top,
    .bottom-left,
    .bottom-right {
        display: none !important;
    }

    .login-bottom {
        padding: 20px 10px;
    }

    .login-form-wrapper {
        margin-top: 20px;
    }
}

/* ========================================
   ERROS
   ======================================== */
.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.alert-danger {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.text-danger {
    color: #ffdede;
    font-size: 13px;
}
