/* Estilos do Modal de Suporte */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(15, 15, 15, 0.95);
    border-radius: 24px;
    padding: 32px 24px;
    margin: 0 20px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    transform: scale(0.9);
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #d4af37;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.modal-icon i {
    font-size: 32px;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.modal-description {
    font-size: 16px;
    color: #b0b0b0;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-body {
    margin-bottom: 24px;
}

.help-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.help-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(10px);
}

.help-option:hover {
    background: rgba(25, 25, 25, 0.9);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.help-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0a;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.help-option:hover .help-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.help-icon.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.help-icon.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006bb3 100%);
}

.help-icon.email {
    background: linear-gradient(135deg, #ea4335 0%, #d33b2c 100%);
}

.help-icon i {
    font-size: 24px;
}

.help-info {
    flex: 1;
    text-align: left;
}

.help-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 4px;
}

.help-info p {
    font-size: 14px;
    color: #b0b0b0;
    margin: 0;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-btn-single {
    width: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.9) 0%, rgba(184, 151, 43, 0.9) 100%);
    color: #0a0a0a;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.modal-btn-single:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #d4af37 0%, #b8972b 100%);
}

.login-container {
    max-width: 100%;
    margin: 0 auto;
    padding-top: 60px;
    overflow-x: hidden;
    position: relative;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(212, 175, 55, 0.01) 0%, transparent 50%);
    z-index: -1;
}

.welcome-section {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #d4af37;
    font-size: 32px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.welcome-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 12px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    letter-spacing: 1px;
}

.welcome-section p {
    font-size: 16px;
    color: #b0b0b0;
    font-weight: 400;
}

.login-form {
    margin-bottom: 32px;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 24px;
    padding: 40px 35px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.login-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    opacity: 0.3;
}

.form-group {
    margin-bottom: 32px;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 14px;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group label i {
    font-size: 16px;
    opacity: 0.8;
}

.input-with-icon {
    position: relative;
}

.input-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #f8e6a6);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.form-group input:focus ~ .input-decoration {
    width: 100%;
}

.form-group input {
    width: 100%;
    padding: 20px 20px 20px 50px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 14px;
    font-size: 16px;
    color: #ffffff;
    transition: all 0.3s ease;
    outline: none;
    font-weight: 400;
    backdrop-filter: blur(10px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 10px rgba(0, 0, 0, 0.2);
}

.form-group input:focus {
    border-color: #d4af37;
    box-shadow: 
        0 0 0 2px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: rgba(25, 25, 25, 0.9);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #666666;
    opacity: 0.7;
}

/* Ícones nos inputs */
.form-group:nth-child(1) .input-with-icon::before {
    content: '📱';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: 0.7;
    z-index: 2;
}

.form-group:nth-child(2) .input-with-icon::before {
    content: '🔒';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: 0.7;
    z-index: 2;
}

/* Botão de mostrar senha */
.toggle-password {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #b0b0b0;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 4px;
}

.toggle-password:hover {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.form-options {
    margin: 35px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #b0b0b0;
    user-select: none;
    font-weight: 400;
    transition: all 0.3s ease;
}

.checkbox-container:hover {
    color: #d4af37;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 22px;
    width: 22px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: #d4af37;
    background: rgba(25, 25, 25, 0.9);
}

.checkbox-container input:checked ~ .checkmark {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.checkbox-container input:checked ~ .checkmark::after {
    content: "✓";
    color: #d4af37;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: #b0b0b0;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.forgot-password:hover {
    color: #d4af37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Botão de login estilizado */
.login-btn {
    width: 100%;
    padding: 22px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.9) 0%, rgba(184, 151, 43, 0.9) 100%);
    color: #0a0a0a;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 0.5px;
    box-shadow: 
        0 8px 25px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.8s ease;
}

.login-btn:hover .btn-shine {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(212, 175, 55, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #d4af37 0%, #b8972b 100%);
}

.login-btn:active {
    transform: translateY(-1px);
}

.login-btn i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.login-btn:hover i {
    transform: translateX(5px);
}

/* Links de autenticação */
.auth-links {
    margin-top: 40px;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.auth-divider span {
    background: rgba(15, 15, 15, 0.9);
    padding: 0 20px;
    color: #b0b0b0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.register-link {
    text-align: center;
}

.register-link p {
    color: #b0b0b0;
    font-size: 15px;
    margin-bottom: 0;
}

.register-link a {
    font-weight: 700;
    color: #d4af37;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.register-link a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.register-link a:hover {
    color: #f8e6a6;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.register-link a:hover::after {
    width: 100%;
}

/* Informações de segurança */
.security-info {
    margin-top: 40px;
    text-align: center;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 25px;
    color: #d4af37;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.security-badge i {
    font-size: 14px;
}

/* Mensagem de erro estilizada */
.error-message {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 35px;
    color: #f8e6a6;
    font-size: 14px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.error-icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #f8e6a6;
    font-size: 20px;
}

.error-message p {
    margin: 10px 0;
    color: #f8e6a6;
    line-height: 1.5;
}

.error-message p:first-child {
    margin-top: 0;
}

.error-message p:last-child {
    margin-bottom: 0;
}

/* Loading state */
.login-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.login-btn.loading::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    margin-left: -12px;
    margin-top: -12px;
    border: 2px solid #0a0a0a;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animações de entrada */
@keyframes formSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form {
    animation: formSlideUp 0.8s ease-out 0.3s both;
}

.welcome-section {
    animation: formSlideUp 0.8s ease-out 0.1s both;
}

.auth-links {
    animation: formSlideUp 0.8s ease-out 0.5s both;
}

.security-info {
    animation: formSlideUp 0.8s ease-out 0.7s both;
}

/* Responsividade */
@media (max-width: 375px) {
    .login-container {
        padding-top: 40px;
    }

    .login-form {
        padding: 30px 20px;
        margin: 0 10px;
    }

    .welcome-section h1 {
        font-size: 28px;
    }

    .form-group input {
        padding: 18px 18px 18px 45px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}