/* ==========================================================================
   #REGISTER PAGE STYLES
   ========================================================================== */

:root {
    --color-gold: #F5B700;
    --color-gold-dark: #C99700;
    --color-input-bg: rgba(255, 255, 255, 0.829);
    --color-text: #2c241b;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Roboto', sans-serif;
}

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

/* BODY */
body {
    font-family: var(--font-body);

    background-image: url('../assets/bg-register.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;

    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    color: var(--color-text);
}

/* ==========================================================================
   LINK VOLTAR
   ========================================================================== */

.back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
    font-size: 1rem;
    z-index: 100;
    background: rgba(0,0,0,0.55);
    padding: 8px 18px;
    border-radius: 30px;
    transition: 0.3s;
}

.back-link:hover {
    background: rgba(245,183,0,0.9);
    color: #000;
}

/* ==========================================================================
   WRAPPER
   ========================================================================== */

.register-wrapper {
    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: flex-end;
    align-items: center;

    padding-right: 8%;
    padding-top: 80px;
}

/* ==========================================================================
   FORM CONTAINER
   ========================================================================== */

.form-container {

    width: 25%;
    max-width: 380px;
    min-width: 280px;

    padding: 25px 32px;
    border-radius: 12px;

    background: rgba(248, 243, 235, 0.85);
    backdrop-filter: blur(6px);

    border: 1px solid rgba(212,197,181,0.8);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.45),
        inset 0 0 10px rgba(255,255,255,0.2);

    transition: 0.3s;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.form-header {
    text-align: center;
    margin-bottom: 22px;
}

.form-header h2 {
    font-family: var(--font-heading);
    color: #3e2714;
    font-size: 1.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-header p {
    color: #6d543e;
    font-size: 0.9rem;
}

/* ==========================================================================
   INPUTS
   ========================================================================== */

.input-group {
    margin-bottom: 14px;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: bold;
    color: #5a4635;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Wrapper */
.input-wrapper {
    position: relative;
}

/* Ícone dentro do input */
.input-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c735d;
    font-size: 14px;
    pointer-events: none;
}

/* Input */
.input-wrapper input {
    width: 100%;
    padding: 11px 12px 11px 38px; /* espaço para o ícone */
    border: 2px solid #d4c5b5;
    border-radius: 8px;
    background: rgba(246, 241, 235, 0.7);
    font-size: 0.9rem;
    transition: 0.25s;
}

/* Placeholder */
.input-wrapper input::placeholder {
    color: #9b8873;
}

/* Focus */
.input-wrapper input:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(255,255,255,0.95);
    box-shadow: 0 0 8px rgba(245,183,0,0.4);
}

/* ==========================================================================
   MENSAGENS DE ERRO/SUCESSO
   ========================================================================== */

.error-msg,
.success-msg {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
}

.error-msg {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid #dc2626;
    color: #dc2626;
}

.success-msg {
    background: rgba(22, 163, 74, 0.15);
    border: 1px solid #16a34a;
    color: #16a34a;
}

/* ==========================================================================
   RECAPTCHA
   ========================================================================== */

.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 18px 0;
}

/* ==========================================================================
   CHECKBOX
   ========================================================================== */

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    font-size: 0.85rem;
}

.form-check input {
    accent-color: var(--color-gold);
}

.form-check a {
    color: #7a5b1b;
    font-weight: bold;
}

.form-check a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   BOTÃO
   ========================================================================== */

.btn-register {
    width: 100%;
    padding: 14px;

    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 1px;

    color: #fff;

    background: linear-gradient(
        to bottom,
        #d4a01e,
        #b08109
    );

    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;

    border: none;

    box-shadow:
        0 5px 12px rgba(0,0,0,0.35),
        inset 0 1px 2px rgba(255,255,255,0.3);

    transition: 0.25s;
}

.btn-register:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 8px 18px rgba(0,0,0,0.45),
        0 0 12px rgba(245,183,0,0.6);
}

.btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.form-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width: 1024px) {

    .register-wrapper {
        justify-content: center;
        padding-right: 0;
    }

    .form-container {
        width: 42%;
    }
}

@media (max-width: 768px) {

    body {
        background-position: center;
        background-attachment: scroll;
    }

    .register-wrapper {
        align-items: flex-start;
        padding-top: 40px;
    }

    .form-container {
        width: 90%;
    }
}

