/**
 * Estilos para o Shortcode [upgram_my_orders]
 * Login, Registro, Recuperação de Senha e Exibição de Pedidos
 * 
 * @package Upgram
 * @since 1.0.0
 */

.upgram-login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    background: transparent;
    position: relative;
}

.upgram-login-card {
    background: white;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    width: 600px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.upgram-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.upgram-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.upgram-login-icon {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.3),
        0 0 0 8px rgba(102, 126, 234, 0.1);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.upgram-login-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px 0;
}

.upgram-login-subtitle {
    font-size: 16px;
    color: #718096;
    margin: 0;
}

.upgram-login-form {
    margin-bottom: 24px;
}

.upgram-form-group {
    margin-bottom: 20px;
}

.upgram-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.upgram-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.upgram-form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.upgram-form-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 4px 16px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.upgram-form-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.upgram-form-options {
    margin-bottom: 24px;
}

.upgram-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
}

.upgram-checkbox input[type="checkbox"] {
    display: none;
}

.upgram-checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.upgram-checkbox input[type="checkbox"]:checked + .upgram-checkbox-mark {
    background: #667eea;
    border-color: #667eea;
}

.upgram-checkbox input[type="checkbox"]:checked + .upgram-checkbox-mark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.upgram-form-actions {
    margin-bottom: 20px;
}

.upgram-login-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.3),
        0 4px 12px rgba(102, 126, 234, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.upgram-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(102, 126, 234, 0.4),
        0 8px 20px rgba(102, 126, 234, 0.3);
}

.upgram-login-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;
}

.upgram-login-btn:hover::before {
    left: 100%;
}

.upgram-btn-text {
    font-weight: 600;
}

.upgram-btn-icon {
    transition: transform 0.3s ease;
}

.upgram-login-btn:hover .upgram-btn-icon {
    transform: translateX(2px);
}

.upgram-form-footer {
    text-align: center;
}

.upgram-forgot-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    background: none;
    border: none;
    cursor: pointer;
}

.upgram-forgot-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.upgram-forgot-link:hover {
    color: #764ba2;
    transform: translateY(-1px);
}

.upgram-forgot-link:hover::after {
    width: 100%;
}

.upgram-login-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.upgram-login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.upgram-divider-text {
    background: white;
    padding: 0 16px;
    color: #718096;
    font-size: 14px;
    position: relative;
}

.upgram-register-section {
    text-align: center;
}

.upgram-register-text {
    color: #718096;
    font-size: 14px;
    margin: 0 0 16px 0;
}

.upgram-register-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upgram-register-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.upgram-register-btn:hover .upgram-btn-icon {
    transform: translateX(2px);
}

/* Estilos para o modal de confirmação de e-mail */
.upgram-email-confirmation {
    text-align: center;
    padding: 20px 0;
}

.upgram-confirmation-icon {
    margin-bottom: 24px;
}

.upgram-confirmation-content {
    margin-bottom: 32px;
}

.upgram-confirmation-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 16px 0;
}

.upgram-confirmation-text {
    font-size: 16px;
    color: #4a5568;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.upgram-confirmation-instructions {
    font-size: 14px;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

.upgram-confirmation-actions {
    margin-top: 24px;
}

.upgram-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Estilos para mensagens de erro */
.upgram-error-message {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Estilos para mensagens de sucesso */
.upgram-success-message {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Estilos para mensagens de debug */
.upgram-debug-message {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: pre-wrap;
}

/* Estilos para o container do Turnstile */
.upgram-turnstile-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.upgram-turnstile-container .cf-turnstile {
    transform: scale(0.9);
}

/* Estilos para o cabeçalho de boas-vindas */
.upgram-welcome-header {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

.upgram-welcome-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.3);
}

.upgram-new-order-btn:hover,
.upgram-logout-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px);
}

/* Estilos para as categorias */
.upgram-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.upgram-category-modal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.upgram-view-all-btn:hover {
    background: #667eea !important;
    color: white !important;
    border-color: #667eea !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .upgram-login-container {
        padding: 16px;
    }
    
    .upgram-login-card {
        padding: 32px 24px;
        width: 100%;
        max-width: 500px;
        border-radius: 20px;
    }
    
    .upgram-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .upgram-login-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    
    .upgram-login-title {
        font-size: 24px;
    }

    .upgram-turnstile-container .cf-turnstile {
        transform: scale(0.8);
    }

    .upgram-welcome-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .upgram-welcome-text h2 {
        font-size: 18px !important;
    }

    .upgram-welcome-text p {
        font-size: 13px !important;
    }

    .upgram-header-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .upgram-new-order-btn,
    .upgram-logout-btn {
        justify-content: center;
        margin-right: 0 !important;
    }

    .upgram-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
        gap: 12px !important;
    }

    .upgram-all-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 16px !important;
    }

    .upgram-category-card {
        padding: 16px !important;
    }

    .upgram-category-modal-card {
        padding: 16px !important;
    }
}

@media (max-width: 480px) {
    .upgram-login-container {
        padding: 12px;
    }
    
    .upgram-login-card {
        padding: 24px 20px;
        width: 100%;
        max-width: 100%;
        border-radius: 20px;
    }
    
    .upgram-login-icon {
        width: 72px;
        height: 72px;
        margin-bottom: 16px;
    }
    
    .upgram-login-title {
        font-size: 22px;
    }
    
    .upgram-login-subtitle {
        font-size: 14px;
    }
    
    .upgram-form-input {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .upgram-login-btn {
        padding: 16px 20px;
        font-size: 15px;
    }

    .upgram-welcome-header {
        padding: 12px !important;
    }

    .upgram-welcome-text h2 {
        font-size: 16px !important;
    }

    .upgram-new-order-btn,
    .upgram-logout-btn {
        padding: 8px 16px !important;
        font-size: 14px;
    }

    .upgram-categories-grid {
        grid-template-columns: 1fr !important;
    }

    .upgram-all-categories-grid {
        grid-template-columns: 1fr !important;
    }

    .upgram-section-header {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
    }
}

