/* Estilos para páginas de autenticação */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.auth-header .logo-icon {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.auth-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ff6b6b;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.alert-error::before {
    content: '⚠️';
    font-size: 1.1rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.auth-form label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.auth-form .form-group:focus-within label {
    color: var(--primary-color);
}

.auth-form input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.auth-form input:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.auth-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1),
                0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-1px);
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.auth-form small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-submit {
    width: 100%;
    padding: 1.125rem;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4),
                0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-submit:hover::before {
    transform: translateX(100%);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: linear-gradient(135deg, #666 0%, #444 100%);
}

.auth-footer {
    text-align: center;
}

.auth-footer p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.auth-footer a:hover {
    opacity: 0.8;
}

/* Modal de login - Design Profissional */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    z-index: 9999;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
}

.modal-small {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.modal-small .modal-content {
    width: 100%;
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8),
                0 0 200px rgba(0, 212, 255, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-small .modal-header {
    position: relative;
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.03) 0%, transparent 100%);
}

.modal-small .modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.modal-small .modal-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
}

.modal-small .modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-small .modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    transform: rotate(90deg);
    border-color: rgba(255, 255, 255, 0.2);
}

.modal-small .modal-body {
    padding: 2rem 2rem 2.5rem;
}

.modal-small .auth-form {
    margin: 0;
}

.modal-small .auth-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.modal-small .auth-form label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

.modal-small .auth-form .form-group:focus-within label {
    color: #00d4ff;
}

.modal-small .auth-form input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.2s ease;
    outline: none;
}

.modal-small .auth-form input:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.modal-small .auth-form input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1),
                inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.modal-small .auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.modal-small .auth-form input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(30, 30, 30, 0.95) inset;
    -webkit-text-fill-color: #ffffff;
    transition: background-color 5000s ease-in-out 0s;
}

.modal-small .alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ff6b6b;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.modal-small .btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
}

.modal-small .btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.modal-small .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.modal-small .btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

.modal-small .btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.modal-small .btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: linear-gradient(135deg, #666 0%, #444 100%);
    transform: none;
}

.modal-small .modal-footer {
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 1.5rem;
}

.modal-small .auth-links {
    text-align: center;
}

.modal-small .register-link {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.modal-small .register-link span {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.modal-small .link-primary {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.modal-small .link-primary:hover {
    color: #ffffff;
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-1px);
}

.modal-small .link-primary::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.modal-small .link-primary:hover::after {
    width: 100%;
}

.modal-small .modal-footer-old {
    text-align: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-small .modal-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.modal-small .modal-footer a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.modal-small .modal-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #00d4ff;
    transition: width 0.3s ease;
}

.modal-small .modal-footer a:hover {
    color: #66e1ff;
}

.modal-small .modal-footer a:hover::after {
    width: 100%;
}

/* Adicionar ícone de login ao header do modal */
.modal-small .modal-header::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal grande para histórico */
.modal-large {
    max-width: 900px !important;
    margin: 0 auto;
}

.modal-large .modal-content {
    max-width: 100%;
    background: rgba(20, 20, 20, 0.98) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Estilo do usuário na navbar */
.nav-user {
    color: var(--primary-color);
    font-weight: 500;
    margin: 0 1rem;
}

/* Tabela de ordens */
.orders-container {
    max-height: 500px;
    overflow-y: auto;
}

.orders-table {
    width: 100%;
    overflow-x: auto;
}

.orders-table table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.orders-table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--text-primary);
}

.orders-table td {
    color: var(--text-secondary);
}

.orders-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Badges de status */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.status-waiting {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.status-detected {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.status-processing {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
}

.status-completed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-expired,
.status-cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Botão pequeno */
.btn-small {
    padding: 0.375rem 0.75rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.no-orders {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .orders-table {
        font-size: 0.875rem;
    }
    
    .modal-large .modal-content {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 0.5rem;
    }
    
    .modal-small .modal-content {
        padding: 1.5rem;
    }
} 