/* ===== FORMULÁRIO MODERNO TRANSPARENTE - MUNDO MASCULINO ===== */

* {
    box-sizing: border-box;
}

/* Container principal de autenticação */
.mundom-auth-container {
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.mundom-form-wrapper {
    max-width: 420px;
    margin: 0 auto;
    position: relative;
}

/* Logo */
.mundom-logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.mundom-logo {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.mundom-logo:hover {
    transform: scale(1.05);
}

/* Container dos formulários */
.mundom-forms-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.mundom-form-section {
    width: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateX(100%);
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.mundom-form-section.active {
    position: relative;
    transform: translateX(0);
    opacity: 1;
}

.mundom-auth-container.transitioning .mundom-form-section {
    pointer-events: none;
}

.mundom-form-control {
    padding: 40px 35px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(224, 224, 224, 0.753);
    border-radius: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    position: relative;
    overflow: hidden;
    /* box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1); */
}

/* Efeito de borda animada */
.mundom-form-control::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent,
            rgba(0, 0, 0, 0.1));
    background-size: 400% 400%;
    animation: borderGlow 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes borderGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Header do formulário */
.mundom-form-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}

.mundom-form-header h2 {
    width: 278px;
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.mundom-form-header p {
    color: rgba(0, 0, 0, 0.7);
    font-size: 16px;
    margin: 0;
    font-weight: 400;
}

.mundo-m-form-field label {
    display: block;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.mundo-m-form-field input[type="text"],
.mundo-m-form-field input[type="email"],
.mundo-m-form-field input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    font-size: 16px;
    color: #1a1a1a;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mundo-m-form-field input[type="text"]:focus,
.mundo-m-form-field input[type="email"]:focus,
.mundo-m-form-field input[type="password"]:focus {
    background: rgba(255, 255, 255, 1);
    border-color: #000000;
    box-shadow:
        0 0 0 4px rgba(0, 0, 0, 0.1),
        0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.mundo-m-form-field input::placeholder {
    color: rgba(0, 0, 0, 0.5);
    font-style: italic;
}

/* Campo de senha com toggle */
.mundom-password-field {
    position: relative;
    display: flex;
    align-items: center;
}

body .mundom-toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 16px;
}

body .mundom-toggle-password:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
}

body .mundom-toggle-password:focus {
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
}

/* Checkbox personalizado */
.mundo-field-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.mundom-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.mundo-field-checkbox input[type="checkbox"] {
    appearance: none;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mundo-field-checkbox input[type="checkbox"]:checked {
    background: #000000;
    border-color: #000000;
}

.mundo-field-checkbox input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
}

.mundom-checkbox-label {
    color: rgba(0, 0, 0, 0.8);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

/* Botão de submit */
.mundom-form-actions {
    margin-top: 30px;
}

body .mundom-submit-btn {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #000000, #2c2c2c);
    color: #ffffff;
    border: 2px solid #000000;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body .mundom-submit-btn:hover {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    border-color: #333333;
    transform: translateY(-3px);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body .mundom-submit-btn:active {
    transform: translateY(-1px);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Efeito de brilho no botão */
body .mundom-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.5s ease;
}

body .mundom-submit-btn:hover::before {
    left: 100%;
}

/* Botões para alternar entre formulários */
body .mundom-switch-form {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body .mundom-switch-form p {
    margin: 0 0 12px;
    color: rgba(0, 0, 0, 0.7);
    font-size: 14px;
    font-weight: 500;
}

body .mundom-switch-btn {
    background: none;
    border: 2px solid #000000;
    color: #000000;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body .mundom-switch-btn:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

body .mundom-switch-btn:active {
    transform: translateY(0);
}

body .mundom-forgot-link,
body .mundom-forgot-link:hover,
body .mundom-forgot-link:focus {
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    background-color: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

/* Links do formulário */
body .mundom-form-links {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Mensagens do sistema */
body .mundom-form-message {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.mundom-message-error {
    background: rgba(255, 71, 87, 0.1);
    color: #d63031;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.mundom-message-success {
    background: rgba(46, 213, 115, 0.1);
    color: #00b894;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.mundom-message-info {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

/* Loading spinner */
.mundom-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.mundom-submit-btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Indicador de força da senha */
.password-strength {
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.strength-weak {
    background: #ff4757;
}

.strength-fill.strength-medium {
    background: #ffa502;
}

.strength-fill.strength-strong {
    background: #2ed573;
}

.strength-fill.strength-very-strong {
    background: #00b894;
}

.strength-text {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

/* Mensagem de usuário logado */
.mundom-logged-in-message {
    max-width: 420px;
    margin: 0 auto;
    padding: 40px 35px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(224, 224, 224, 0.753);
    border-radius: 24px;
    text-align: center;
    /* box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1); */
}

.mundom-user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mundom-avatar {
    position: relative;
}

.mundom-user-avatar {
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mundom-user-details h3 {
    color: #000000;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.mundom-user-details p {
    color: rgba(0, 0, 0, 0.8);
    margin: 8px 0 20px;
    font-size: 16px;
}

.mundom-user-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.mundom-logout-btn,
.mundom-profile-btn {
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mundom-logout-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #000000;
    border: 1px solid #585858;

}

.mundom-profile-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    border: 1px solid #585858;
}

.mundom-logout-btn:hover {
    color: #fff;
    background: rgb(0, 0, 0);
    border-color: rgba(255, 255, 255, 0.5);
}

.mundom-profile-btn:hover {
    background: #000000;
    color: #fff;
    transform: translateY(-2px);
}

/* Mensagem de erro */
.mundom-error-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
}

/* Animações de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mundom-form-control,
.mundom-logged-in-message {
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mundo-m-form-field {
    margin-bottom: 0.8rem;
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation-fill-mode: both;
}

#mundom-login-form>div.mundo-m-form-field.mundo-field-checkbox>label {
    display: none;
}

.mundo-m-form-field:nth-child(1) {
    animation-delay: 0.1s;
}

.mundo-m-form-field:nth-child(2) {
    animation-delay: 0.2s;
}

.mundo-m-form-field:nth-child(3) {
    animation-delay: 0.3s;
}

.mundo-m-form-field:nth-child(4) {
    animation-delay: 0.4s;
}

/* Responsividade */
@media (max-width: 480px) {

    .mundom-form-control,
    .mundom-logged-in-message {
        margin: 20px;
        padding: 30px 25px;
        border-radius: 20px;
        max-width: none;
    }

    .mundo-m-form-field input[type="text"],
    .mundo-m-form-field input[type="email"],
    .mundo-m-form-field input[type="password"] {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 12px;
    }

    .mundom-submit-btn {
        padding: 16px 20px;
        font-size: 15px;
        border-radius: 12px;
    }

    .mundom-user-actions {
        flex-direction: column;
    }

    .mundom-logout-btn,
    .mundom-profile-btn {
        width: 100%;
        text-align: center;
    }
}

/* Estados de validação */
.mundo-m-form-field.error input {
    border-color: rgba(255, 71, 87, 0.6);
    background: rgba(255, 71, 87, 0.1);
}

.mundo-m-form-field.success input {
    border-color: rgba(46, 213, 115, 0.6);
    background: rgba(46, 213, 115, 0.1);
}