/*
|--------------------------------------------------------------------------
| Autenticação - Komvos Club
| Login e cadastro
|--------------------------------------------------------------------------
*/

:root {
    --auth-black: #050505;
    --auth-dark: #111111;
    --auth-dark-soft: #1c1c1c;
    --auth-gold: #d6aa32;
    --auth-gold-light: #edc95c;
    --auth-white: #ffffff;
    --auth-muted: #a7a7a7;
    --auth-border: #3b3b3b;
    --auth-danger: #dc3545;
    --auth-success: #2f9e5b;
}

/*
|--------------------------------------------------------------------------
| Página
|--------------------------------------------------------------------------
*/

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;
    padding: 3rem 1rem;

    background-color: #050608;
    background-image: url("../img/wallpaper-komvos-fachada.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

.auth-page.auth-register-page {
    align-items: flex-start;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/*
|--------------------------------------------------------------------------
| Cartão
|--------------------------------------------------------------------------
*/

.auth-card {
    width: min(100%, 430px);
    overflow: hidden;
    border: 1px solid var(--auth-border);
    border-radius: 18px;
    background-color: var(--auth-dark);
    color: var(--auth-white);
    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(214, 170, 50, 0.05);
}

.auth-register-page .auth-card {
    width: min(100%, 560px);
}

.auth-card-body {
    padding: 2rem;
}

/*
|--------------------------------------------------------------------------
| Cabeçalho
|--------------------------------------------------------------------------
*/

.auth-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 70px;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(214, 170, 50, 0.28);
}

.auth-header img {
    display: block;
    width: auto;
    max-width: 210px;
    height: 42px;
    object-fit: contain;
}

.auth-register-page .auth-header img {
    height: 35px;
}

.auth-header-divider {
    width: 1px;
    height: 42px;
    background-color: var(--auth-gold);
    opacity: 0.85;
}

.auth-header-title {
    margin: 0;
    color: var(--auth-white);
    font-size: 1.25rem;
    font-weight: 800;
    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| Formulários
|--------------------------------------------------------------------------
*/

.auth-card .form-label {
    display: block;
    margin-bottom: 0.45rem;
    color: #eeeeee;
    font-size: 0.86rem;
    font-weight: 700;
}

.auth-card .form-control,
.auth-card .form-select {
    min-height: 45px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background-color: var(--auth-dark-soft) !important;
    color: var(--auth-white) !important;
    font-size: 0.92rem;
}

.auth-card textarea.form-control {
    min-height: auto;
}

.auth-card .form-control::placeholder {
    color: #858585;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
    border-color: var(--auth-gold);
    background-color: var(--auth-dark-soft) !important;
    box-shadow: 0 0 0 0.2rem rgba(214, 170, 50, 0.2);
    color: var(--auth-white) !important;
}

.auth-card .form-select option {
    background-color: var(--auth-dark);
    color: var(--auth-white);
}

.auth-card .form-text {
    color: var(--auth-muted);
    font-size: 0.76rem;
}

.auth-card .mb-3,
.auth-card .mb-4 {
    margin-bottom: 1.15rem !important;
}

/*
|--------------------------------------------------------------------------
| Botões
|--------------------------------------------------------------------------
*/

.auth-card .btn {
    min-height: 45px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 800;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.auth-card .btn:hover {
    transform: translateY(-1px);
}

.auth-card .btn-primary,
.auth-card .btn-secondary {
    border-color: var(--auth-gold);
    background-color: var(--auth-gold);
    color: var(--auth-black);
}

.auth-card .btn-primary:hover,
.auth-card .btn-secondary:hover {
    border-color: var(--auth-black);
    background-color: var(--auth-black);
    color: var(--auth-white);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.28);
}

.auth-card .btn:focus-visible {
    outline: 3px solid rgba(214, 170, 50, 0.35);
    outline-offset: 3px;
}

/*
|--------------------------------------------------------------------------
| Alertas
|--------------------------------------------------------------------------
*/

.auth-card .alert {
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.auth-card .alert-danger {
    border-color: rgba(220, 53, 69, 0.5);
    background-color: rgba(220, 53, 69, 0.14);
    color: #ffb3bb;
}

.auth-card .alert-success {
    border-color: rgba(47, 158, 91, 0.5);
    background-color: rgba(47, 158, 91, 0.14);
    color: #a9e8bd;
}

/*
|--------------------------------------------------------------------------
| Links
|--------------------------------------------------------------------------
*/

.auth-card a {
    color: var(--auth-gold-light);
    font-weight: 700;
    text-decoration: none;
}

.auth-card a:hover {
    color: var(--auth-white);
    text-decoration: underline;
}

.auth-footer-text {
    margin: 1.35rem 0 0;
    color: var(--auth-muted);
    font-size: 0.86rem;
    line-height: 1.6;
    text-align: center;
}

.auth-footer-text a {
    color: var(--auth-gold-light) !important;
}

/*
|--------------------------------------------------------------------------
| Cadastro
|--------------------------------------------------------------------------
*/

.auth-register-page .auth-card-body {
    padding: 2.25rem;
}

.auth-register-page form {
    display: grid;
    gap: 0.05rem;
}

.auth-register-page .form-label::after {
    content: "";
}

.auth-register-intro {
    margin: -0.75rem 0 1.5rem;
    color: var(--auth-muted);
    font-size: 0.86rem;
    line-height: 1.6;
    text-align: center;
}

/*
|--------------------------------------------------------------------------
| Login
|--------------------------------------------------------------------------
*/

.auth-login-page .auth-card {
    width: min(100%, 390px);
}

.auth-login-page .auth-card-body {
    padding: 2rem;
}

/*
|--------------------------------------------------------------------------
| Ícone de mostrar senha, caso seja adicionado
|--------------------------------------------------------------------------
*/

.auth-password-wrapper {
    position: relative;
}

.auth-password-wrapper .form-control {
    padding-right: 3rem;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--auth-muted);
}

.auth-password-toggle:hover {
    color: var(--auth-gold-light);
}

/*
|--------------------------------------------------------------------------
| Responsividade
|--------------------------------------------------------------------------
*/

@media (max-width: 575.98px) {
	.auth-page {
	background-position: center top;
	background-attachment: scroll;
    }

    .auth-page.auth-register-page {
        align-items: flex-start;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .auth-card,
    .auth-register-page .auth-card,
    .auth-login-page .auth-card {
        width: 100%;
        border-radius: 14px;
    }

    .auth-card-body,
    .auth-register-page .auth-card-body,
    .auth-login-page .auth-card-body {
        padding: 1.35rem;
    }

    .auth-header {
        gap: 0.75rem;
    }

    .auth-header img {
        max-width: 175px;
        height: 35px;
    }

    .auth-register-page .auth-header img {
        height: 28px;
    }

    .auth-header-title {
        font-size: 1.05rem;
    }

    .auth-header-divider {
        height: 35px;
    }
}

@media (max-width: 380px) {
    .auth-header {
        gap: 0.55rem;
    }

    .auth-header img {
        max-width: 145px;
    }

    .auth-header-title {
        font-size: 0.95rem;
    }

    .auth-card-body {
        padding: 1.1rem;
    }
}