@charset "ISO-8859-1";

/* RESET E BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

body {
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    width: 100%;
}

/* CABEÇALHO DO LOGIN */
.login-header {
    background: linear-gradient(135deg, #FF7B54 0%, #FF9A3D 100%);
    color: white;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-logo i {
    margin-right: 15px;
    font-size: 36px;
}

.login-subtitle {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Botão voltar para o site - SEMPRE DO LADO DIREITO */
.btn-voltar {
    position: absolute;
    top: 20px;
    right: 30px;
    background: white;
    color: #FF7B54;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid transparent;
    z-index: 10;
}

.btn-voltar i {
    font-size: 16px;
}

.btn-voltar:hover {
    background: #FF7B54;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 123, 84, 0.2);
    border-color: white;
}

/* CONTAINER PRINCIPAL */
.login-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* CARD DE LOGIN - FUNDO BRANCO COM BORDA */
.login-card {
    background: white;
    width: 100%;
    max-width: 450px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.login-card-header {
    padding: 40px 35px 25px;
    text-align: center;
    background: white;
}

.login-card-title {
    font-size: 28px;
    color: #1a2a3a;
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.login-card-subtitle {
    color: #6c7a89;
    font-size: 14px;
    font-weight: 500;
}

/* FORMULÁRIO */
.login-form {
    padding: 0 35px 35px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.form-label i {
    color: #FF7B54;
    margin-right: 8px;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    transition: all 0.3s;
    z-index: 1;
}

.input-with-icon input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e9ecef;
    border-radius: 14px;
    font-size: 15px;
    transition: all 0.3s;
    background: #ffffff;
    font-family: inherit;
    color: #1a2a3a;
}

.input-with-icon input::placeholder {
    color: #adb5bd;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #FF7B54;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 123, 84, 0.05);
}

.input-with-icon input:focus + .input-icon {
    color: #FF7B54;
}

/* MENSAGENS */
.message {
    padding: 14px 20px;
    border-radius: 12px;
    margin: 20px 35px;
    display: none;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.message.error {
    background: #fff5f5;
    color: #c62828;
    border-left: 4px solid #dc3545;
    display: flex;
}

.message.success {
    background: #f0fff4;
    color: #2e7d32;
    border-left: 4px solid #28a745;
    display: flex;
}

.message.warning {
    background: #fffbeb;
    color: #d97706;
    border-left: 4px solid #f59e0b;
    display: flex;
}

.message i {
    font-size: 18px;
}

/* BOTÃO DE LOGIN */
.login-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #FF7B54 0%, #FF9A3D 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(255, 123, 84, 0.2);
    letter-spacing: 0.5px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 123, 84, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

/* LOADING */
.loading {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 12px;
    gap: 10px;
    margin-top: 15px;
}

.spinner {
    border: 3px solid rgba(255, 123, 84, 0.2);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border-left-color: #FF7B54;
    animation: spin 0.8s linear infinite;
}

.loading span {
    font-size: 13px;
    color: #888;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============== RODAPÉ AZUL COM ÍCONE GRANDE =============== */
.login-footer,
.main-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 20px 40px;
    margin-top: auto;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-top: none;
}

/* Efeito de linha decorativa no topo do rodapé */
.login-footer::before,
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    opacity: 0.8;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ÍCONE GRANDE */
.footer-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-icon:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
}

.footer-icon i {
    font-size: 42px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-title i {
    font-size: 1.3rem;
    color: #FFD700;
}

.footer-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.footer-highlight {
    color: #FFD700;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding: 0 4px;
    transition: all 0.3s ease;
}

.footer-highlight:hover {
    color: #FFA500;
    transform: scale(1.02);
}

.footer-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #FFD700;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.footer-highlight:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.footer-version {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-version span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 40px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
}

.footer-version span:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-version i {
    font-size: 0.8rem;
    color: #FFD700;
}

.alpha-badge {
    background: linear-gradient(135deg, #FF7B54 0%, #FF9A3D 100%);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    letter-spacing: 0.5px;
}

/* RESPONSIVIDADE - BOTÃO VOLTAR SEMPRE NO CANTO DIREITO */
@media (max-width: 576px) {
    .login-header {
        padding: 20px;
        position: relative;
    }

    .login-logo {
        font-size: 26px;
        margin-top: 5px;
    }

    .login-logo i {
        font-size: 28px;
    }

    /* Botão voltar - mantém no lado direito no mobile */
    .btn-voltar {
        position: absolute;
        top: 20px;
        right: 20px;
        left: auto;
        display: inline-flex;
        margin: 0;
        padding: 8px 16px;
        font-size: 12px;
    }

    .login-card {
        max-width: 100%;
        border-radius: 20px;
    }
    
    .login-card-header {
        padding: 30px 25px 20px;
    }
    
    .login-card-title {
        font-size: 24px;
    }
    
    .login-card-subtitle {
        font-size: 12px;
    }

    .login-form {
        padding: 0 25px 25px;
    }
    
    .message {
        margin: 15px 25px;
        padding: 12px 16px;
    }

    .footer-icon {
        width: 65px;
        height: 65px;
    }
    
    .footer-icon i {
        font-size: 34px;
    }

    .footer-title {
        font-size: 1rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-title i {
        font-size: 1.1rem;
    }

    .footer-version {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .footer-version span {
        width: 100%;
        justify-content: center;
        max-width: 220px;
        padding: 6px 15px;
    }

    .footer-text {
        font-size: 0.8rem;
        padding: 0 10px;
        line-height: 1.6;
    }
    
    .login-footer,
    .main-footer {
        padding: 40px 15px 35px;
    }
    
    .input-with-icon input {
        padding: 12px 14px 12px 45px;
        font-size: 14px;
    }
}

/* Tablets pequenos */
@media (min-width: 577px) and (max-width: 768px) {
    .footer-version {
        gap: 20px;
    }
    
    .footer-text {
        max-width: 90%;
    }
    
    .footer-title {
        font-size: 1.1rem;
    }
    
    .btn-voltar {
        top: 20px;
        right: 25px;
    }
    
    .login-card {
        max-width: 420px;
    }
    
    .footer-icon {
        width: 70px;
        height: 70px;
    }
    
    .footer-icon i {
        font-size: 38px;
    }
}

/* Tablets grandes */
@media (min-width: 769px) and (max-width: 1024px) {
    .login-card {
        max-width: 450px;
    }
}

/* Landscape mode */
@media (max-height: 600px) and (orientation: landscape) {
    .login-header {
        padding: 12px;
    }
    
    .login-logo {
        font-size: 22px;
    }
    
    .login-logo i {
        font-size: 24px;
    }
    
    .login-subtitle {
        display: none;
    }
    
    .login-container {
        padding: 20px;
    }
    
    .login-card-header {
        padding: 20px;
    }
    
    .login-card-title {
        font-size: 20px;
    }
    
    .login-form {
        padding: 0 25px 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .login-footer,
    .main-footer {
        padding: 30px 20px 25px;
    }
    
    .footer-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 8px;
    }
    
    .footer-icon i {
        font-size: 28px;
    }
    
    .footer-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .footer-text {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }
    
    .footer-version {
        margin-top: 15px;
        padding-top: 15px;
        gap: 12px;
    }
    
    .footer-version span {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
}


/* Descrição do sistema no cabeçalho */
.login-description {
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    animation: fadeInUp 0.5s ease-out;
}

.login-description i {
    font-size: 1rem;
    color: #FFD700;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajuste responsivo para a descrição */
@media (max-width: 576px) {
    .login-description {
        font-size: 0.7rem;
        padding: 8px 15px;
        margin-top: 12px;
        text-align: center;
    }
    
    .login-description i {
        font-size: 0.8rem;
    }
}



/* Suporte para notch */
@supports (padding: max(0px)) {
    .login-header {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-top: max(20px, env(safe-area-inset-top));
    }
    
    .login-footer,
    .main-footer {
        padding-bottom: max(30px, env(safe-area-inset-bottom));
    }
    
    .btn-voltar {
        right: max(20px, env(safe-area-inset-right));
        top: max(20px, env(safe-area-inset-top));
    }
}

/* Prevenção de overflow */
img, video, iframe, canvas, svg {
    max-width: 100%;
    height: auto;
}